Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
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