ShowConditionalFormattingDataBarRuleStyleEditDialog(TObject,TdxSpreadSheetConditionalFormattingRuleDataBarStyle) Method
Invokes the “Data Bar Rule Style Settings“ dialog for a specified control with support for conditional formatting.
Declaration
function ShowConditionalFormattingDataBarRuleStyleEditDialog(AOwner: TObject; AStyle: TdxSpreadSheetConditionalFormattingRuleDataBarStyle): Boolean;
Parameters
Name | Type |
---|---|
AOwner | TObject |
AStyle | TdxSpreadSheetConditionalFormattingRuleDataBarStyle |
Returns
Type |
---|
Boolean |
Remarks
Call this function to invoke the dialog that defines the appearance of data bars for a new or existing “Data Bar“ conditional formatting rule. Use the AOwner parameter to pass a target control with support for conditional formatting (that is, a control that implements the IdxDialogOwner and IdxSpreadSheetConditionalFormatting interfaces); otherwise – a ShowConditionalFormattingDataBarRuleStyleEditDialog function call has no effect. The AStyle parameter accepts visual style settings of a new or existing “Data Bar” conditional formatting rule.
The ShowConditionalFormattingDataBarRuleStyleEditDialog function returns True if the “Data Bar Rule Style Settings” dialog is closed by an OK button click or an Enter keystroke; otherwise – False.
The second overloaded function variant is designed for use in C++Builder code, due to compiler limitations. This variant accepts a pointer to a control (AOwner) that has a conditional formatting functionality.
Note
A “Conditional Formatting Rule“ dialog calls the ShowConditionalFormattingDataBarRuleStyleEditDialog function to invoke the “Data Bar Rule Style Settings” dialog in response to a click on the “Format…” button while the “Data Bar” rule type is selected.