ModelItemCollection.Move(Int32, Int32) ModelItemCollection.Move(Int32, Int32) ModelItemCollection.Move(Int32, Int32) ModelItemCollection.Move(Int32, Int32) Method

Definición

Mueve un elemento de la colección a un índice diferente.Moves an item in the collection to a different index.

public:
 abstract void Move(int fromIndex, int toIndex);
public abstract void Move (int fromIndex, int toIndex);
abstract member Move : int * int -> unit
Public MustOverride Sub Move (fromIndex As Integer, toIndex As Integer)

Parámetros

fromIndex
Int32 Int32 Int32 Int32

Índice del elemento que se va a mover antes del movimiento.The index of the item to be moved before the move.

toIndex
Int32 Int32 Int32 Int32

El índice del elemento después de haberse movido.The index of the item after it is moved.

Excepciones

El valor de fromIndex o toIndex es negativo o mayor o igual que el valor de Count.Either fromIndex or toIndex is negative or greater than or equal to Count.

Se aplica a