Skip to main content
A newer version of this page is available. .

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.v19.1.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

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

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