Skip to main content

TdxRichEditControlBase.AutoSizeMode Property

Specifies the automatic size adjustment mode applied to the Rich Edit control.

Declaration

property AutoSizeMode: TdxRichEditAutoSizeMode read; write; default TdxRichEditAutoSizeMode.None;

Property Value

Type Default
TdxRichEditAutoSizeMode None

Remarks

Use this property in order to adjust the Rich Edit control’s dimensions on the form according to the current size of its content. If the AutoSizeMode property is set to a value different from TdxRichEditAutoSizeMode.None, the control’s Width and/or Height property values are adjusted to fit the current document content. If the AutoSizeMode property value is changed back to the default value, the control’s initial dimensions are not restored.

To see the full list of available automatic size adjustment modes, refer to the TdxRichEditAutoSizeMode type description.

Note

The automatic size adjustment functionality of the Rich Edit control is designed only for the Simple document representation. The AutoSizeMode property functions as described only if the ActiveViewType property is set to TdxRichEditViewType.Simple. Otherwise, the control’s area collapses to the minimum (i.e., one pixel) width and height values, ignoring the document’s actual content.

The default value of the AutoSizeMode property is TdxRichEditAutoSizeMode.None.

See Also