Skip to main content

ColumnDefinition.Width Property

Gets or sets the column width, in pixels or as a percentage, according to the ColumnDefinition.SizeType.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[XtraSerializableProperty]
public double Width { get; set; }

Property Value

Type Description
Double

A value that specifies the column width.

Remarks

The column width can be in absolute or relative values depending on the ColumnDefinition.SizeType property. If this property is set to AutoSize, the column width is automatically calculated to fit its contents and the Width property is ignored.

To learn about the specifics of calculating the size of columns/rows of the Percent type, see ColumnDefinition.SizeType.

See Also