Skip to main content

Create(TdxSpreadSheetCustomConditionalFormatting) Constructor

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

Declaration

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