ModelItemCollection.Move Method
When overridden in a derived class, moves an item to a new index.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Sub Move ( _
fromIndex As Integer, _
toIndex As Integer _
)
public abstract void Move(
int fromIndex,
int toIndex
)
public:
virtual void Move(
int fromIndex,
int toIndex
) abstract
abstract Move :
fromIndex:int *
toIndex:int -> unit
public abstract function Move(
fromIndex : int,
toIndex : int
)
Parameters
- fromIndex
Type: System.Int32
The index of the item to move.
- toIndex
Type: System.Int32
The index to move it to.
Remarks
The value for toIndex is always where you want the item to be according to the current state of the collection. This means that if you are moving an item to a higher index, you do not have to account for the fact that the indexes will shuffle when the item is removed from its current location.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace