Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayerCollection.Swap(Int32, Int32) Method

In This Article

Swaps two indexes of a layer in the layer collection.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public void Swap(
    int index1,
    int index2
)

#Parameters

Name Type Description
index1 Int32

An integer value that represents the first layer’s index to be swapped with the second layer’s index in the layer collection.

index2 Int32

An integer value that represents the second layer’s index to be swapped with the first layer’s index in the layer collection.

See Also