ITabFormatCondition.Condition

Syntax

Condition: String;

Description

The Condition property determines the condition checked for each cell.

Comment. The property is outdated.

Example

Sub Button1OnClick1(Sender: Object; Args: IEventArgs);

Var

Range: ITabRange;

Format: ITabFormatCondition;

Form_c: ITabFormatConditions;

Style: ITabCellStyle;

Begin

Range := UiTabSheet1.TabSheet.View.Selection.Range;

Form_c := Range.FormatConditions;

Format := Form_c.Add;

Format.Condition := "value<100";

Style := New TabCellStyle.Create;

Style.BackgroundColor := GxColor.FromName("Red");

Format.Style := Style;

End Sub Button1OnClick1;

After executing the example clicking the button sets the red background for those cells of the selected range which have values smaller than 100.

See also:

ITabFormatCondition