Back to Devexpress

TreeListBand.VisibleWidth Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistband-8758e767.md

latest2.1 KB
Original Source

TreeListBand.VisibleWidth Property

Returns the current band width.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public int VisibleWidth { get; }
vb
<Browsable(False)>
Public ReadOnly Property VisibleWidth As Integer

Property Value

TypeDescription
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

Width

TreeListBand Class

TreeListBand Members

DevExpress.XtraTreeList.Columns Namespace