Skip to main content

TdxSpreadSheetAutoFitColumnWidth Class

An action object that implements the AutoFitColumnWidth end-user command in Spreadsheet and Report Designer-based applications.

Declaration

TdxSpreadSheetAutoFitColumnWidth = class(
    TdxSpreadSheetCustomEditAction
)

Remarks

This class does not introduce any new public members. Its overridden Execute function call adjusts the width of all columns that intersect the current cell selection to fit the longest cell value in each column.

The AutoFitColumnWidth command does not affect a column if:

  • The column is empty.
  • The column and its longest cell value already have the same width.

UI elements linked to a TdxSpreadSheetAutoFitColumnWidth action object are enabled only if the following conditions are met:

See Also