Back to Devexpress

ColumnDefinition.Width Property

windowsforms-devexpress-dot-xtralayout-dot-columndefinition-f4030fa3.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[XtraSerializableProperty]
public double Width { get; set; }
vb
<XtraSerializableProperty>
Public Property Width As Double

Property Value

TypeDescription
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

SizeType

Table Layout

ColumnDefinition Class

ColumnDefinition Members

DevExpress.XtraLayout Namespace