asp.net.ph

ListItemCollection.Insert Method ( Int32, ListItem )

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
);

Parameters

index
The location in the collection to add the ListItem.
item
The ListItem to add to the collection.

Remarks

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.

See Also

ListItemCollection Members   ListItemCollection.Insert Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph