Skip to main content

AnnotationRepository.Contains(Annotation) Method

Determines whether the collection contains the specified Annotation object.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public bool Contains(
    Annotation annotation
)

Parameters

Name Type Description
annotation Annotation

An Annotation object to locate in the collection.

Returns

Type Description
Boolean

true if the collection contains the specified annotation; otherwise, false.

Remarks

This method allows you to search for an annotation within all annotations present in a chart.

To search for an annotation within the collection of a particular element (a chart, pane or series point), use the corresponding AnnotationCollection.Contains method.

See Also