語言

ModelItemCollection.Move(Int32, Int32) 方法

定義

將集合中的專案移至不同的索引。

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)

參數

fromIndex
Int32

移動前要移動的項目索引。

toIndex
Int32

物品移動後的索引。

例外狀況

或為fromIndextoIndex負值,或大於Count等於。

適用於