LEADTOOLS (Leadtools assembly)

InsertItem Method

Show in webframe







The 0-based index at which item should be inserted.
The object to insert. The value can be null for reference types.
Inserts an item into the LeadCollection<T> at the specified index.
Syntax
protected override void InsertItem( 
   int index,
   T item
)
'Declaration
 
Protected Overrides Sub InsertItem( _
   ByVal index As Integer, _
   ByVal item As T _
) 
'Usage
 
Dim instance As LeadCollection(Of T)
Dim index As Integer
Dim item As T
 
instance.InsertItem(index, item)
protected override void InsertItem( 
   int index,
   T item
)

            

            
 function Leadtools.LeadCollection.InsertItem( 
   index ,
   item 
)
protected:
void InsertItem( 
   int index,
   T^ item
) override 

Parameters

index
The 0-based index at which item should be inserted.
item
The object to insert. The value can be null for reference types.
Remarks

The InsertItem is meant to be overridden in a derived class. For a public method to insert an item in the LeadCollection<T>, see Insert.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

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

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

See Also

Reference

LeadCollection<T> Class
LeadCollection<T> Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.