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

[To be supplied.]

Overload List

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. The item is created with no associated image or subItems.

[Visual Basic] Overloads Public Function InsertItem(Integer, String) As ListItem
[C#] public ListItem InsertItem(int, String);
[C++] public: ListItem* InsertItem(int, String);
[JScript] public function InsertItem(int, String) : 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(Integer, ListItem) As ListItem
[C#] public ListItem InsertItem(int, ListItem);
[C++] public: ListItem* InsertItem(int, ListItem);
[JScript] public function InsertItem(int, ListItem) : 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 position indicated by the index parameter. The item is created with no subItems.

[Visual Basic] Overloads Public Function InsertItem(Integer, String, Integer) As ListItem
[C#] public ListItem InsertItem(int, String, int);
[C++] public: ListItem* InsertItem(int, String, int);
[JScript] public function InsertItem(int, String, int) : 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 position indicated by the index parameter.

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

See Also

ListView Class | ListView Members | System.WinForms Namespace