ObservableCollection<T>.MoveItem(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.
protected:
virtual void MoveItem(int oldIndex, int newIndex);
protected virtual void MoveItem (int oldIndex, int newIndex);
abstract member MoveItem : int * int -> unit
override this.MoveItem : int * int -> unit
Protected Overridable Sub MoveItem (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
This implementation raises the CollectionChanged event.
Subclasses can override this protected method to provide custom behavior for the Move method.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.