TdxSpreadSheetNewComment Class
An action object that corresponds to the NewComment command provided by the Spreadsheet and Report Designer controls.
Declaration
TdxSpreadSheetNewComment = class(
TdxSpreadSheetCustomCommentAction
)
Remarks
This class does not introduce any new public members. Executing this action object results in:
- Creating a new comment container at the focused cell and invoking its Customize Object with the active Text tab.
- Invoking the Customize Object dialog with the active Text tab for an existing comment container whose cell object is currently focused.
UI elements linked to a TdxSpreadSheetNewComment
action object are enabled only if the following conditions are met:
- Spreadsheet document editing is allowed (i.e., the control’s OptionsBehavior.Editing property is set to
True
). - Floating container editing operations are allowed in the active worksheet (i.e., its OptionsProtection.ActualAllowEditContainers property returns
True
). - No floating container is currently selected.
Note
Both TdxSpreadSheetNewComment
and TdxSpreadSheetEditComment action objects work identically, invoking the EditComment procedure for the currently active Table View worksheet.
Inheritance
See Also