Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListBand.VisibleWidth Property

Returns the current band width.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

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

#Property Value

Type Description
Int32

A value that specifies the current band width, in pixels.

#Remarks

Initially, the band width is specified by the TreeListBand.Width property. The VisibleWidth property returns the actual band width. If TreeListOptionsView.AutoWidth is set to false, the Width and VisibleWidth properties’ values are equal.

However, when the TreeListOptionsView.AutoWidth option is enabled, the band width is automatically changed. The Width value stays constant when the band width is changed, and this allows you to restore the initial band width after disabling the auto-width feature. In this instance, the actual band width can be obtained by reading the VisibleWidth property.

See Also