Skip to main content

AnnotationCollection.Swap(Annotation, Annotation) Method

Swaps the two specified annotations within the collection.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public void Swap(
    Annotation annotation1,
    Annotation annotation2
)

Parameters

Name Type Description
annotation1 Annotation

An Annotation object which specifies the first annotation to swap. If null, then the ArgumentNullException will be raised. If the specified annotation doesn’t belong to the collection, then the ArgumentException will be raised.

annotation2 Annotation

An Annotation object which specifies the second annotation to swap. If null, then the ArgumentNullException will be raised. If the specified annotation doesn’t belong to the collection, then the ArgumentException will be raised.

Remarks

Use this method to quickly swap the values of two collection items with each other.

See Also