AnnotationCollection.Swap(Int32, Int32) Method

Swaps the two annotations with the specified indexes in the collection.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public void Swap(
    int index1,
    int index2
)
Public Sub Swap(
    index1 As Integer,
    index2 As Integer
)

Parameters

Name Type Description
index1 Int32

An integer value which specifies the index of the first annotation to swap in the collection. Note that if the index is less than 0, or more than the Count value, a ArgumentException will be thrown.

index2 Int32

An integer value which specifies the index of the second annotation to swap in the collection. Note that if the index is less than 0, or more than the Count value, a ArgumentException will be thrown.

Remarks

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

Implements

DevExpress.XtraCharts.Native.IAnnotationCollection.Swap(Int32, Int32)
See Also