ModelItemCollection.Move Method (Int32, Int32)

.NET Framework (current version)
 

Moves an item in the collection to a different index.

Namespace:   System.Activities.Presentation.Model
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public abstract void Move(
	int fromIndex,
	int toIndex
)

Parameters

fromIndex
Type: System.Int32

The index of the item to be moved before the move.

toIndex
Type: System.Int32

The index of the item after it is moved.

Exception Condition
IndexOutOfRangeException

Either fromIndex or toIndex is negative or greater than or equal to Count.

.NET Framework
Available since 4.0
Return to top
Show: