LinkedElementCollection<T>.Move Method (Int32, Int32)

Moves a role to a new position inside the collection.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Sub Move ( _
    oldIndex As Integer, _
    newIndex As Integer _
)
'使用
Dim instance As LinkedElementCollection
Dim oldIndex As Integer
Dim newIndex As Integer

instance.Move(oldIndex, newIndex)
public void Move(
    int oldIndex,
    int newIndex
)
public:
void Move(
    int oldIndex, 
    int newIndex
)
public function Move(
    oldIndex : int, 
    newIndex : int
)

Parameters

  • oldIndex
    Type: System.Int32

    The current index of the role in the collection.

  • newIndex
    Type: System.Int32

    The new index of the role in the collection.

Permissions

See Also

Reference

LinkedElementCollection<T> Class

LinkedElementCollection<T> Members

Move Overload

Microsoft.VisualStudio.Modeling Namespace