Back to Devexpress

TreeListBand.Width Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistband-f470be93.md

latest2.5 KB
Original Source

TreeListBand.Width Property

Gets or sets the band’s width.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(75)]
[DXCategory("Appearance")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
[XtraSerializablePropertyId(3)]
public int Width { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(75)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)>
<XtraSerializablePropertyId(3)>
Public Property Width As Integer

Property Value

TypeDefaultDescription
Int3275

A value that specifies the band’s width, in pixels.

|

Remarks

The Width property cannot be set to value less than the TreeListBand.MinWidth property’s value.

Bands can contain child bands and columns, whose width is specified by their own Width property. If you customize the width of the band’s child band/column, this leads to re-calculation of the parent band width (as sum of child band/column widths). Changing the band width, in turn, has an effect on widths of its child bands/columns.

The actual band width may not match the Width property’s value, if the TreeListOptionsView.AutoWidth option is enabled. In this instance, use the TreeListBand.VisibleWidth property to obtain the actual band’s width.

See Also

MinWidth

VisibleWidth

TreeListBand Class

TreeListBand Members

DevExpress.XtraTreeList.Columns Namespace