Skip to main content

TreeListColumn.VisibleWidth Property

Gets the visible width of the column.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v22.2.dll

NuGet Package: DevExpress.Win.TreeList


public int VisibleWidth { get; }

Property Value

Type Description

An integer value representing the visible column width.


Initially, column width is specified by the column’s TreeListColumn.Width property. However, when the auto width feature is active (the TreeListOptionsView.AutoWidth option is enabled), this property value remains the same although the columns’ widths may have changed. This is done so that the initial widths of columns will be restored when the TreeListOptionsView.AutoWidth option is disabled.

The actual width of a column can be obtained using the VisibleWidth property. When the auto width feature is disabled, the VisibleWidth and TreeListColumn.Width properties return the same value.

See Also