OptionsTableLayoutGroup.ShrinkEmptyAutoSizeDefinition Property

Gets or sets whether to automatically minimize empty rows/columns whose SizeType property is set to AutoSize.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.2.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean ShrinkEmptyAutoSizeDefinition { get; set; }
<DefaultValue(DefaultBoolean.Default)>
Public Property ShrinkEmptyAutoSizeDefinition As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A value that specifies if the LayoutControl minimizes empty rows/columns whose SizeType property is set to AutoSize.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShrinkEmptyAutoSizeDefinition
LayoutViewCard
.OptionsTableLayoutGroup.ShrinkEmptyAutoSizeDefinition
LayoutControlGroup
.OptionsTableLayoutGroup.ShrinkEmptyAutoSizeDefinition
LayoutGroup
.OptionsTableLayoutGroup.ShrinkEmptyAutoSizeDefinition

Remarks

This property affects auto-size rows/columns (their ColumnDefinition.SizeType/RowDefinition.SizeType properties are set to AutoSize) when they become empty.

Set the ShrinkEmptyAutoSizeDefinition property to True to shrink an empty row/column to the minimum width/height specified by the OptionsTableLayoutGroup.AutoSizeDefaultDefinitionLength property.

If the ShrinkEmptyAutoSizeDefinition property is set to Default or False, empty columns/rows do not necessarily shrink to the minimum length. This row's/column's minimum size is limited to the OptionsTableLayoutGroup.AutoSizeDefaultDefinitionLength value, while the maximum size is not constrained.

See Also