TdxSpreadSheetAutoFitRowHeight Class
An action object that implements the AutoFitRowHeight end-user command in Spreadsheet and Report Designer-based applications.
Declaration
TdxSpreadSheetAutoFitRowHeight = class(
TdxSpreadSheetCustomEditAction
)
Remarks
This class does not introduce any new public members. Its overridden Execute function call adjusts the height of all rows that intersect the current cell selection to fit the highest cell value in each row.
The AutoFitRowHeight command does not affect a row if:
- The row is empty.
- The row and its highest cell value already have the same height.
UI elements linked to a TdxSpreadSheetAutoFitRowHeight
action object are enabled only if the following conditions are met:
- Spreadsheet document edit operations are allowed (that is, 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
). - At least one cell is selected (the command is unavailable if a floating container is selected or the protected worksheet’s OptionsProtection.ActualAllowSelectUnlockedCells property returns
False
). - Row resize operations are allowed (the active worksheet’s OptionsProtection.ActualAllowResizeRows property returns
True
).
Inheritance
See Also