LinkedElementCollection<T>.Move 方法

定义

重载

Move(Int32, Int32)

将角色扮演者移到集合中的新位置。

Move(T, Int32)

将角色扮演者移到集合中的新位置。

Move(Int32, Int32)

将角色扮演者移到集合中的新位置。

public:
 void Move(int oldIndex, int newIndex);
public void Move (int oldIndex, int newIndex);
member this.Move : int * int -> unit
Public Sub Move (oldIndex As Integer, newIndex As Integer)

参数

oldIndex
Int32

集合内角色扮演者的当前索引。

newIndex
Int32

集合内角色扮演者的新位置。

适用于

Move(T, Int32)

将角色扮演者移到集合中的新位置。

public:
 void Move(T item, int newIndex);
public void Move (T item, int newIndex);
member this.Move : 'T * int -> unit
Public Sub Move (item As T, newIndex As Integer)

参数

item
T

要移动的角色扮演者。

newIndex
Int32

集合内角色扮演者的新索引。

适用于