adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / ADTObjectCollectionT<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 from. Must be a valid index for the collection.
The index to move the item to. 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 Moves an item within the collection
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Sub MoveItem( _
       ByVal oldIndex As Integer, _
       ByVal newIndex As Integer _
    ) 
    public override void MoveItem( 
       int oldIndex,
       int newIndex
    )
    public:
    void MoveItem( 
       int oldIndex,
       int newIndex
    ) override 

    Parameters

    oldIndex
    The index to move the item from. Must be a valid index for the collection.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.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.
    Thrown if oldIndex or newIndex is not a valid index.
    See Also