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

Declaration

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

Parameters

Name Type Description
band TreeListBand

An object that specifies the band to be found.

Optional Parameters

Name Type Default Description
recursive Boolean

False

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

Returns

Type Description
Boolean

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

Remarks

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