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.v21.2.dll

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean ShrinkEmptyAutoSizeDefinition { get; set; }

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.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

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