ITabFormatCondition.Style

Syntax

Style: ITabCellStyle;

Description

The Style property determines the style applied to a cell when the Condition condition is met.

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;

Executing this example sets the red background for the cells from the selected range whose values are less than 100.

See also:

ITabFormatCondition