ITabFormatGrowth.Direction

Syntax

Direction: TabFormatGrowthDirection;

Description

The Direction property determines the direction of grows indicator construction.

Comments

By default the growth indicator is constructed according to the rows values.

Example

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
    Tab: ITabSheet;
    Range: ITabRange;
    FormCond: ITabFormatCondition;
    Growth: ITabFormatGrowth;
Begin
    Tab := TabSheetBox1.Source.GetTabSheet;
    Range := Tab.View.Selection.Range;
    FormCond := Range.FormatConditions.Add;
    FormCond.Type := TabConditionType.Growth;
    Growth := FormCond.Details As ITabFormatGrowth;
    Growth.Direction := TabFormatGrowthDirection.Columns;
    Growth.IconType := TabConditionIconType.Arrows2;
End Sub Button1OnClick;

Clicking the buttons adds the conditional format for the selected cell range. Conditional formatting is performed as the grows indicator with values by columns.

See also:

ITabFormatGrowth