Back to Devexpress

ChartCollectionBase.Swap(Int32, Int32) Method

corelibraries-devexpress-dot-xtracharts-dot-chartcollectionbase-dot-swap-x28-system-dot-int32-system-dot-int32-x29.md

latest2.0 KB
Original Source

ChartCollectionBase.Swap(Int32, Int32) Method

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

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Parameters

NameTypeDescription
index1Int32

An integer value which specifies the index of the first item 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 item 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.

See Also

ChartCollectionBase Class

ChartCollectionBase Members

DevExpress.XtraCharts Namespace