System.Web.UI.WebControls Namespace ListItemCollection Class
Inserts the specified ListItem to the collection at the specified index location.
[ VB ]
Overloads Public Sub Insert ( _
ByVal index As Integer, _
ByVal item As ListItem _
)
[ C# ]
public void Insert (
int index,
ListItem item
);
[ C++ ]
public: void Insert (
int index,
ListItem* item
);
[ JScript ]
public function Insert (
index : int,
item : ListItem
);
- index
- The location in the collection to add the ListItem.
- item
- The ListItem to add to the collection.
Use the Insert method to add a ListItem to the collection at the index specified by the index parameter. This implementation of the method takes the ListItem specified by the item parameter and inserts it in the collection at the specified index.
ListItemCollection Members ListItemCollection.Insert Overload List