IList.Add Method

ListViewGroupCollection.IList.Add Method (Object)


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

Adds a new ListViewGroup to the ListViewGroupCollection.

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

int IList.Add(
	object value


Type: System.Object

The ListViewGroup to add to the ListViewGroupCollection.

Return Value

Type: System.Int32

The index at which the ListViewGroup has been added.

Exception Condition

value is not a ListViewGroup.


value contains at least one ListViewItem that belongs to a ListView control other than the one that owns this ListViewGroupCollection.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft