AssignPredefinedGrowth(IconType: TabConditionIconType; [Direction: TabFormatGrowthDirection = 0]);
AssignPredefinedGrowth(IconType: Prognoz.Platform.Interop.Tab.TabConditionIconType; [Direction: Prognoz.Platform.Interop.Tab.TabFormatGrowthDirection = 0]);
IconType. Type of icons used for cell formatting.
Direction. Direction of grows indicator construction.
The AssignPredefinedGradient method loads growth indicator settings to current format.
To execute the example a form with the button on it named Button1, the TabSheetBox component named TabSheetBox1 name and a data source for TabSheetBox1 are required.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
TSheet: ITabSheet;
Range: ITabRange;
Condition: ITabFormatCondition;
Begin
TSheet := TabSheetBox1.Source.GetTabSheet;
Range := TSheet.View.Selection.Range;
Condition := Range.FormatConditions.Add;
Condition.AssignPredefinedGrowth(TabConditionIconType.Arrows2, TabFormatGrowthDirection.Columns);
End Sub Button1OnClick;
Clicking the buttons creates a new conditional format for the selected cell range. Growth indicator settings are set up for the conditional format.
To execute the example a form with the button on it named Button1, the TabSheetBoxNet component named TabSheetBoxNet1 and a data source for TabSheetBoxNet1 are required.
Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Tab;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
TSheet: ITabSheet;
Range: ITabRange;
Condition: ITabFormatCondition;
Begin
TSheet := TabSheetBoxNet1.Source.GetTabSheet();
Range := TSheet.View.Selection.Range;
Condition := Range.FormatConditions.Add();
Condition.AssignPredefinedGrowth(TabConditionIconType.tcitArrows2, TabFormatGrowthDirection.tfgdColumns);
End Sub;
Clicking the buttons creates a new conditional format for the selected cell range. Grows indicator settings are specified for the conditional format.
See also: