Skip to main content

TreeListBand.VisibleWidth Property

Returns the current band width.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v21.2.dll

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