moveItem Method

Summary

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

Syntax
TypeScript
JavaScript
LeadCollection.prototype.moveItem = function( 
   oldIndex, 
   newIndex 
) 
moveItem( 
   oldIndex: number, 
   newIndex: number 
): void; // protected 

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

This method raises the CollectionChanged event with Move action.

Notes to Inheritors

Derived classes can override this method to change the behavior of the Move method.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.