ObservableCollection<T>.Move(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves the item at the specified index to a new location in the collection.
public:
void Move(int oldIndex, int newIndex);
public void Move (int oldIndex, int newIndex);
member this.Move : int * int -> unit
Public Sub Move (oldIndex As Integer, newIndex As Integer)
Parameters
- oldIndex
- Int32
The zero-based index specifying the location of the item to be moved.
- newIndex
- Int32
The zero-based index specifying the new location of the item.
Remarks
Subclasses can override the MoveItem method to provide custom behavior for this method.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.