adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / ObjectCollectionT<T> Class / MoveItem Method / MoveItem(Int32,Int32) Method
The index to move the item from. Must be a valid index for the collection.
The index to move the item to. Must be a valid index for the collection.


In This Topic
    MoveItem(Int32,Int32) Method
    In This Topic
    Moves an item within the collection
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub MoveItem( _
       ByVal oldIndex As Integer, _
       ByVal newIndex As Integer _
    ) 
    public virtual void MoveItem( 
       int oldIndex,
       int newIndex
    )
    public:
    virtual void MoveItem( 
       int oldIndex,
       int newIndex
    ) 

    Parameters

    oldIndex
    The index to move the item from. Must be a valid index for the collection.
    newIndex
    The index to move the item to. Must be a valid index for the collection.
    Exceptions
    ExceptionDescription
    Thrown if oldIndex or newIndex is not a valid index.
    See Also