ListViewGroupCollection::Count Property

 

Gets the number of groups in the collection.

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

public:
property int Count {
	virtual int get() sealed;
}

Property Value

Type: System::Int32

The number of groups in the collection.

Use this property to determine the number of groups in the collection. This is useful when you need to loop through the collection and perform the same operation on each group. You can also use the IEnumerator returned by the GetEnumerator method to iterate through the collection.

.NET Framework
Available since 2.0
Return to top
Show: