Skip to main content

BandCollection.Contains(Band) Method

Determines whether the specified band is a member of the collection.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core


public bool Contains(
    Band band


Name Type Description
band Band

The Band object to locate in the collection.


Type Description

true if the band is a member of the collection; otherwise, false.


This method enables you to determine whether the band is a member of the collection before attempting to perform operations on the band. This method can be used to confirm that the band has been added to or is still a member of the collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Contains(Band) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also