TreeListBand.Width Property
Gets or sets the band’s width.
Namespace: DevExpress.XtraTreeList.Columns
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
[DefaultValue(75)]
[DXCategory("Appearance")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
[XtraSerializablePropertyId(3)]
public int Width { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Int32 | 75 | 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.