Skip to main content

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

NuGet Package: DevExpress.Win.Navigation

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 Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Property Paths

You can access this nested property as listed below:

Object Type Path to 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