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.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public bool Contains(
TreeListBand band,
bool recursive = false
)
#Parameters
Name | Type | Description |
---|---|---|
band | Tree |
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 Tree |
#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.