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)

private:
virtual int Add(
	Object^ value
) sealed = IList::Add

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.

Exception Condition
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
Available since 2.0
Return to top
Show: