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

Create(TdxSpreadSheetCustomConditionalFormatting) Constructor

Creates a new style-based conditional formatting rule in the specified conditional formatting controller.

#Declaration

Delphi
constructor Create(AOwner: TdxSpreadSheetCustomConditionalFormatting); override;

#Parameters

Name Type Description
AOwner TdxSpreadSheetCustomConditionalFormatting

A conditional formatting controller.

#Remarks

Call this constructor to create an “Expression“, “Cell Is“, “Duplicate Values“ or “Unique Values“ conditional formatting rule with the default settings within a conditional formatting controller passed as the AOwner parameter. Alternatively, you can call either of the controller’s overloaded Add procedures passing a reference to the corresponding style-based rule class as the ARuleClass parameter. The Create constructor creates the Style property set for storing cell format settings and calls the inherited constructor to create an empty list of cell ranges affected by the rule.

The TdxSpreadSheetConditionalFormattingRuleAboveOrBelowAverage and TdxSpreadSheetConditionalFormattingRuleTopBottomValues classes override the Create constructor initialize the conditional formatting rule-specific settings.

To delete a style-based conditional formatting rule, pass it as the ARule parameter of the conditional formatting controller’s Remove procedure.

See Also