TreeListColumn.Width Property

Gets or sets the column width in pixels.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

[DefaultValue(75)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public int Width { get; set; }
<DefaultValue(75)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)>
Public Property Width As Integer

Property Value

Type Default Description
Int32

75

An integer value representing the column width in pixels.

Remarks

Use the Width property to adjust the column width. Note, however, that there can be situations when the value returned by this property doesn't represent the actual column width. This takes place when enabling the TreeListOptionsView.AutoWidth option. In this case, columns are proportionaly resized to fit the width of the control. In fact, the TreeListColumn.Width properties of columns remain the same. The actual width of a column can be accessed via the TreeListColumn.VisibleWidth property in this case.

The actual value that you can set using the Width property is limited by the TreeListColumn.MaxWidth and TreeListColumn.MinWidth property values.

Implements

DevExpress.XtraTreeList.Internal.IHeaderObject.Width
See Also