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

SeparatorControl.AutoSizeMode Property

Gets or sets whether the control client area size is automatically calculated based on the separating line thickness and paddings.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v19.1.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
[SmartTagProperty("AutoSizeMode", "", 2)]
public bool AutoSizeMode { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if the control client area size is automatically calculated based on the separating line thickness and paddings; otherwise, false.

Remarks

By default, the control width and height can be explicitly specified using the Size inherited property. Set the AutoSizeMode property to true to automatically calculate the control width or height, depending on whether the separating line is vertically or horizontally oriented, based on the separating line width (see SeparatorControl.LineThickness) and paddings (see SeparatorControl.Padding). In this case, the other dimension can be still explicitly specified.

See Also