NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListView.InsertItem (Int32, ListItem)

Inserts a new ListItem into the ListView. The item will be inserted either in the correct sorted position, or, if no sorting is set, at the positiion indicated by the index parameter.

[Visual Basic]
Overloads Public Function InsertItem( _
   ByVal index As Integer, _
   ByVal li As ListItem _
) As ListItem
[C#]
public ListItem InsertItem(
   int index,
   ListItem li
);
[C++]
public: ListItem* InsertItem(
   int index,
   ListItem* li
);
[JScript]
public function InsertItem(
   index : int,
   li : ListItem
) : ListItem;

Parameters

index
Index for new Item
li
ListItem object describing new item

Return Value

the ListItem object passed in.

See Also

ListView Class | ListView Members | System.WinForms Namespace | ListView.InsertItem Overload List