Back to Devexpress

TreeListBand.MinWidth Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistband-1635085b.md

latest2.3 KB
Original Source

TreeListBand.MinWidth Property

Gets or sets the band’s minimum allowed width.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(20)]
[DXCategory("Layout")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public int MinWidth { get; set; }
vb
<DefaultValue(20)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)>
<DXCategory("Layout")>
Public Property MinWidth As Integer

Property Value

TypeDefaultDescription
Int3220

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

|

Remarks

The TreeListBand.Width value cannot be less than the MinWidth value. If the TreeListOptionsView.AutoWidth option is enabled, the band width is calculated automatically. In this instance, to obtain the actual band’s width, use the TreeListBand.VisibleWidth property.

Bands can contain child bands and columns, whose minimum width is specified by their own MinWidth property. Thus, the band’s minimum width depends on its child bands’ and columns’ minimum width constraints.

See Also

Width

VisibleWidth

TreeListBand Class

TreeListBand Members

DevExpress.XtraTreeList.Columns Namespace