Skip to main content

OptionsView.AutoSizeInLayoutControl Property

Gets or sets 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

[DefaultValue(AutoSizeModes.UseMinSizeAndGrow)]
public AutoSizeModes AutoSizeInLayoutControl { get; set; }

Property Value

Type Default Description
AutoSizeModes UseMinSizeAndGrow

A value that specifies how the LayoutControl’s size is changed when it is positioned within another LayoutControl.

Available values:

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.

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoSizeInLayoutControl
LayoutControl
.OptionsView .AutoSizeInLayoutControl

Remarks

In UseMinSizeAndGrow mode, the embedded LayoutControl’s minimum size is limited; it 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 unlimited.

If the AutoSizeInLayoutControl property is set to ResizeToMinSize, the embedded LayoutControl’s size is fixed and is equal to its minimum size.

If you choose UseMinAndMaxSize mode, the embedded LayoutControl’s size can vary between the minimum and maximum sizes, which are returned by the root group’s LayoutGroup.MinSize and LayoutGroup.MaxSize properties, respectively.

See Also