TdxRichEditControlToggleTableAutoFitContents Class
An action object that corresponds to the ToggleTableAutoFitContents command provided by the Rich Edit control.
Declaration
TdxRichEditControlToggleTableAutoFitContents = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlToggleTableAutoFitContents
action object switches between two column width modes of the currently focused table:
- The column width is automatically adjusted to accommodate the longest content within column’s cells.
- Table column widths are not affected by their contents.
UI elements linked to a TdxRichEditControlToggleTableAutoFitContents
action object are enabled only if the following conditions are met:
- The Rich Edit control’s ReadOnly property is set to
False
. - The Rich Edit control’s Options.DocumentCapabilities.Tables property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled.
- The caret, a text selection, or selected image is located within a table.
Inheritance
TObject
TPersistent
TComponent
TBasicAction
TContainedAction
TCustomAction
TAction
TdxBasicAction
TdxRichEditControlAction
TdxRichEditControlToggleTableAutoFitContents
See Also