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.

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

See Also

Reference

ModelItemCollection Class

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture