ListViewGroupCollection.Count Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the number of groups in the collection.

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

public int Count { get; }

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: