Insert Method
See Also 
SourceCode.Framework.Collections Namespace > ViewCollection<TView> 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 Overrides Sub Insert( _
   ByVal index As Integer, _
   ByVal item As TView _
) 
Visual Basic (Usage)Copy Code
Dim instance As ViewCollection(Of TView)
Dim index As Integer
Dim item As TView
 
instance.Insert(index, item)
C# 
public override void Insert( 
   int index,
   TView item
)
C++/CLI 
public:
void Insert( 
   int index,
   TView^ item
) override 

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