Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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