insert Method

Summary

Inserts an item into the LeadCollection at the specified index.

Syntax
TypeScript
JavaScript
LeadCollection.prototype.insert = function( 
   index, 
   item 
) 
insert( 
   index: number, 
   item: any 
): void; 

Parameters

index

The 0-based index at which item should be inserted.

item

The object to insert. The value can be null.

Remarks

Insert internally calls InsertItem, which may be overriden.

LeadCollection accepts null as a valid value and allows duplicate items.

If index is equal to Count, item is added to the end of LeadCollection.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

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

Leadtools Assembly

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