ListViewItem.ListViewSubItemCollection.IList.Insert Method (Int32, Object)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Inserts a subitem into the collection at the specified index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

void IList.Insert(
	int index,
	object item
)

Parameters

index
Type: System.Int32

The zero-based index location where the item is inserted.

item
Type: System.Object

An object that represents the subitem to insert into the collection.

Exception Condition
ArgumentException
ArgumentOutOfRangeException

The index parameter is less than 0 or greater than or equal to the value of the Count property of the ListViewItem.ListViewSubItemCollection.

.NET Framework
Available since 1.1
Return to top
Show: