Skip to main content

TdxSpreadSheetCustomConditionalFormattingRule.Clone(TdxSpreadSheetAreaList) Method

Creates a copy of the conditional formatting rule and applies the created rule to all target areas.

Declaration

function Clone(const AAreas: TdxSpreadSheetAreaList): TdxSpreadSheetCustomConditionalFormattingRule; overload;

Parameters

Name Type Description
AAreas TdxSpreadSheetAreaList

The list of target cell ranges.

Returns

Type Description
TdxSpreadSheetCustomConditionalFormattingRule

The created conditional formatting rule whose settings are copied from the current rule.

Cast the returned object to the corresponding terminal TdxSpreadSheetCustomConditionalFormattingRule class descendant to access all public API members.

Tip

You can call the rule’s ClassType function or use other RTTI functionality to identify the actual rule type.

See Also