This documentation is for the old version. Go to the latest Graphics Mill docs

ListItemCollection.Swap Method (Int32[], Int32)

Shifts elements with the specified indices to a specific position.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Sub Swap ( _
	indexes As Integer(), _
	destinationIndex As Integer _
)
C#
public void Swap(
	int[] indexes,
	int destinationIndex
)

Parameters

indexes

Type: System.Int32 []

An array of element indices to shift.
destinationIndex

Type: System.Int32

A position to which the elements should be shifted.

Remarks

This method swaps the elements so that the items with the indexes start with the destinationIndex.

See Also

Reference