AssignPredefinedGrowth(IconType: TabConditionIconType; [Direction: 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.
Executing the example requires a form with the Button1 button located on it, the TabSheetBox component named TabSheetBox1 and a data source for TabSheetBox1.
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.
See also: