Skip to main content

TreeListColumn.VisibleWidth Property

Gets the visible width of the column.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

[Browsable(false)]
public int VisibleWidth { get; }

Property Value

Type Description
Int32

An integer value representing the visible column width.

Remarks

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