Skip to main content

TdxSpreadSheetCustomConditionalFormatting.Rules Property

Provides zero-based indexed access to individual conditional formatting rules applied to a worksheet or Grid View.

Declaration

property Rules[Index: Integer]: TdxSpreadSheetCustomConditionalFormattingRule read; default;

Property Value

Type
TdxSpreadSheetCustomConditionalFormattingRule

Remarks

Use this property to access a conditional formatting rule whose index is passed as the Index parameter. The rule’s index within the conditional formatting controller also determines its priority for the cells affected by several rules. You can use the RuleCount property to obtain the total number of rules currently managed by the controller.

To access the rule’s type-specific members, you need to cast the Rules property value to the corresponding conditional formatting rule class. For instance, to identify the type of a rule, you can call its ClassName function.

See Also