TreeListBandCollection.Contains(TreeListBand, Boolean) Method

Returns whether the specified band is contained within the current band collection or any of its bands' TreeList.Bands collections.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v20.1.dll


public bool Contains(
    TreeListBand band,
    bool recursive = false
Public Function Contains(
    band As TreeListBand,
    recursive As Boolean = False
) As Boolean


Name Type Description
band TreeListBand

An object that specifies the band to be found.

Optional Parameters

Name Type Default Description
recursive Boolean


true, if the search should be extended to the TreeListBand.Bands collections of the current collection's bands; otherwise, false.


Type Description

true, if the specified band is found; otherwise, false.


The Contains method searches for the specified band within the current collection. If the target band is not found and the recursive parameter equals to true, the method performs a recursive search in TreeList.Bands collections of child bands at all nesting levels.

See Also