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

移动项后的索引。

例外

fromIndex 为负或 toIndex 大于或等于 Count

适用于