TreeListBand.Width Property

Gets or sets the band's width.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

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

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.

Implements

DevExpress.XtraTreeList.Internal.IHeaderObject.Width
See Also