TdxSpreadSheetInsertColumns Class
An action object that corresponds to the InsertColumns command provided by the Spreadsheet and Report Designer controls.
Declaration
TdxSpreadSheetInsertColumns = class(
TdxSpreadSheetCustomEditAction
)
Remarks
This class does not introduce any new public members. Executing this action object inserts columns intersecting the current cell selection area. The number of inserted columns matches the absolute width (in cells) of the current selection. Inserted columns have the same appearance settings as the column adjacent to the left border of the current cell selection area.
UI elements linked to a TdxSpreadSheetInsertColumns
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
). - An in-place cell editor is inactive (the active worksheet‘s IsEditing property returns
False
). - The column insert operation is allowed in the active worksheet (i.e., its OptionsProtection.ActualAllowInsertColumns property returns
True
).
Note
If the active Table View worksheet contains more than one selected cell range, a TdxSpreadSheetInsertColumns
action object raises the EdxSpreadSheetError exception.