Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCustomConditionalFormatting.Rules Property

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

#Declaration

Delphi
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