Skip to main content

Create(TdxSpreadSheetCustomConditionalFormatting) Constructor

Creates a new “Data Bar“ 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 a “Data Bar” 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 TdxSpreadSheetConditionalFormattingRuleDataBar class as the ARuleClass parameter.

The Create constructor creates the Style property set for storing data bar appearance settings, initializes the ShowValue property to its default value, and creates two thresholds corresponding to the minimum and maximum numeric values within the affected cell area(s).

To delete a “Data Bar” conditional formatting rule, pass it as the ARule parameter of the conditional formatting controller’s Remove procedure.

See Also