Skip to main content

OptionsTableLayoutGroup.AutoSizeDefaultDefinitionLength Property

Gets or sets the default size for empty rows/columns of the SizeType.AutoSize type in table layout mode.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(20)]
public int AutoSizeDefaultDefinitionLength { get; set; }

Property Value

Type Default Description
Int32 20

A value that specifies the size for rows/columns of the AutoSize type, in pixels.

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoSizeDefaultDefinitionLength
LayoutGroup
.OptionsTableLayoutGroup .AutoSizeDefaultDefinitionLength

Remarks

In table layout mode, the RowDefinition.SizeType and ColumnDefinition.SizeType properties specify a row’s height type and a column’s width type, respectively. If you add a new row/column at design time or append a new row/column with the default settings in code, the SizeType property of the new row/column is automatically set to AutoSize.

If a row/column of the AutoSize type contains one or more items, its size is automatically adjusted to best fit its contents. If the auto-sized row/column doesn’t display layout items, its size is specified by the AutoSizeDefaultDefinitionLength property.

The AutoSizeDefaultDefinitionLength property does not accept values less than 1.

See Also