AnnotationCollection.Swap(Annotation, Annotation) Method
Swaps the two specified annotations within the collection.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
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.