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

ListItemCollection.Swap Method (IListItem[], Int32)

Shifts the specified elements to a specific position.

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

Syntax

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

Parameters

items

Type: Aurigma.GraphicsMill.WinControls.IListItem []

An array of elements to shift.
destinationIndex

Type: System.Int32

A position to which the items should be shifted.

Remarks

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

See Also

Reference