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.v20.2.dll
Declaration
[DefaultValue(AutoSizeModes.UseMinSizeAndGrow)]
public AutoSizeModes AutoSizeInLayoutControl { get; set; }
<DefaultValue(AutoSizeModes.UseMinSizeAndGrow)>
Public Property AutoSizeInLayoutControl As AutoSizeModes
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. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AutoSizeInLayoutControl |
---|---|
DataLayoutControl |
|
LayoutControl |
|
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.