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, String, Int32, String[])

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 position indicated by the index parameter.

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

Parameters

index
Index for new Item
text
string to display in list
imageIndex
index of image in associated ImageList object
subItems
an array of strings corresponding to subitems of the item

Return Value

a ListItem object representing the added item

See Also

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