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

AutoSizeModes Enum

Enumerates the options that specify how a LayoutControl‘s size is changed when it is positioned within another LayoutControl.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.2.dll

Declaration

public enum AutoSizeModes

Members

Name Description
ResizeToMinSize

The embedded LayoutControl’s size is fixed and is equal to its minimum size.

UseMinSizeAndGrow

The embedded LayoutControl’s minimum size is restricted; while its maximum size is unlimited.

UseMinAndMaxSize

The embedded LayoutControl’s size can vary between its minimum and maximum sizes.

Related API Members

The following properties accept/return AutoSizeModes values:

Remarks

The values listed by this enumeration are used to set the OptionsView.AutoSizeInLayoutControl property.

The LayoutControl minimum size is calculated based on the size constraints of child layout items and can be obtained by reading the root group’s LayoutGroup.MinSize property. The LayoutControl maximum size is returned by the root group’s LayoutGroup.MaxSize property.

See Also