insertRange Method

Summary

Inserts an array of items into the LeadCollection at the specified index.

Syntax
TypeScript
JavaScript
LeadCollection.prototype.insertRange = function( 
   index, 
   items 
) 
insertRange( 
   index: number, 
   items: any[] 
): void; 

Parameters

index

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

items

An array of items to insert. Items may be null.

Remarks

InsertRange internally calls InsertItemRange, which may be overridden.

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

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

This method raises the CollectionChanged event with the Add action.

Requirements

Target Platforms

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

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