Skip to main content
A newer version of this page is available. .

RichEditControl.AutoSizeMode Property

Gets or sets whether the RichEditControl resizes to accommodate the displayed text.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v18.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(AutoSizeMode.None)]
public AutoSizeMode AutoSizeMode { get; set; }

Property Value

Type Default Description
AutoSizeMode

None

An AutoSizeMode enumeration value.

Available values:

Name Description
None

The control does not change its dimensions.

Horizontal

The control is resized in horizontal direction.

Vertical

The control is resized in vertical direction.

Both

The control is resized in horizontal and vertical directions.

Remarks

Set the AutoSizeMode property to any value other than None to update the control’s dimension(s) according to content.

To set a limit so that RichEditControl cannot expand more than the specified value, set the control’s MaximumSize property before the AutoSizeMode property.

Important

The Autosize feature works only for the Simple View. To switch the control to the Simple view, set the RichEditControl.ActiveViewType property to the RichEditViewType.Simple value.

See Also