←Select platform

MoveItem Method

Summary

Moves the item at the specified index to a new location in the collection.

Syntax
C#
VB
C++
protected virtual void MoveItem( 
   int oldIndex, 
   int newIndex 
) 
Protected Overridable Sub MoveItem( _ 
   ByVal oldIndex As Integer, _ 
   ByVal newIndex As Integer _ 
) 
protected: 
virtual void MoveItem( 
   int oldIndex, 
   int newIndex 
) 

Parameters

oldIndex The 0-based index specifying the location of the item to be moved.

newIndex The 0-based index specifying the new location of the item.

Remarks

MoveItem is meant to be overridden in a derived class. For a public method to move an item in the LeadCollection<T>, see Move.

This method raises the CollectionChanged event with Move action.

Requirements

Target Platforms

Help Version 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly