Export (0) Print
Expand All

ListViewGroupCollection.IList.Add Method

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

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

int IList.Add(
	Object value
)

Parameters

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.

Implements

IList.Add(Object)

ExceptionCondition
ArgumentException

value is not a ListViewGroup.

-or-

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft