Back to Devexpress

TreeListBandCollection.Add() Method

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistbandcollection-17769615.md

latest2.7 KB
Original Source

TreeListBandCollection.Add() Method

Creates a new band and adds it to the band collection.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public TreeListBand Add()
vb
Public Function Add As TreeListBand

Returns

TypeDescription
TreeListBand

An object that specifies the new band.

|

Remarks

The Add method creates a new band with default settings, appends it to the end of the band collection and returns the new band. Another overload of the Add method allows you to add a manually created band to the collection.

The TreeListBandCollection.AddBand method creates a new band with the specified caption and appends it to the collection. To add a band to a specific position within the collection, utilize the TreeListBandCollection.Insert method.

In addition, you can add several bands (an array of bands) to the collection using the TreeListBandCollection.AddRange method.

See Also

AddBand(String)

AddRange(TreeListBand[])

Insert(Int32, TreeListBand)

Remove(TreeListBand)

TreeListBandCollection Class

TreeListBandCollection Members

DevExpress.XtraTreeList.Columns Namespace