Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

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

NuGet Package: DevExpress.Win.Navigation

#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