Click or drag to resize

ListView.InsertItem Method (Typed)

X#
Insert a new ListViewItem object after a particular item index in the list view.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD InsertItem(
	oListViewItem AS ListViewItem,
	 nInsertAfter AS LONG
) AS LOGIC
Request Example View Source

Parameters

oListViewItem
Type: ListViewItem
The ListViewItem object to insert in the list view.
nInsertAfter
Type: Long
The position after which to insert the new item. If omitted, the new item is added as the last item.

Return Value

Type: Logic
TRUE if the item was inserted successfully; otherwise, FALSE.
See Also