Insert Method
See Also 
SourceCode.Framework Namespace > CollectionBase<TParent,TItem> Class : Insert Method



index
The zero-based index at wich the Item should be inserted.
item
The Item to insert.

Glossary Item Box

Inserts an Item into the collection at the specified index.

Syntax

Visual Basic (Declaration) 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal item As TItem _
) 
Visual Basic (Usage)Copy Code
Dim instance As CollectionBase(Of TParent,TItem)
Dim index As Integer
Dim item As TItem
 
instance.Insert(index, item)
C# 
public void Insert( 
   int index,
   TItem item
)
C++/CLI 
public:
void Insert( 
   int index,
   TItem^ item
) 

Parameters

index
The zero-based index at wich the Item should be inserted.
item
The Item to insert.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also