TdxSpreadSheetHideColumns Class
An action object that implements the HideColumns end-user command in Spreadsheet and Report Designer-based applications.
Declaration
TdxSpreadSheetHideColumns = class(
TdxSpreadSheetCustomChangeTableItemsVisibilityAction
)
Remarks
This class does not introduce any new public members. Its overridden Execute function call hides all columns that intersect the area joining all currently selected cells and cell ranges.
To display a range of previously hidden columns, select the left and right adjacent columns and activate the UnhideColumns command.
UI elements linked to a TdxSpreadSheetHideColumns
action object are enabled only if the following conditions are met:
- Column resize operations are allowed (that is, the active worksheet‘s OptionsProtection.ActualAllowResizeColumns property returns
True
). - At least one cell is selected (the command is unavailable if a floating container is selected or the protected worksheet’s OptionsProtection.ActualAllowSelectLockedCells and OptionsProtection.ActualAllowSelectUnlockedCells properties return
False
).
Note
All columns within a collapsed group are considered hidden.
Inheritance
See Also