System.Windows.Forms.ListViewGroupCollection: Method Members

The methods of System.Windows.Forms.ListViewGroupCollection are listed below. For a list of all members, see the ListViewGroupCollection Members list.

See Also: Inherited members from System.Object

Public Methods

Add(ListViewGroup) : int

Adds the specified System.Windows.Forms.ListViewGroup to the collection.

Add(string, string) : ListViewGroup

Adds a new System.Windows.Forms.ListViewGroup to the collection using the specified values to initialize the ListViewGroup.Name and ListViewGroup.Header properties

AddRange(ListViewGroup[])

Adds an array of groups to the collection.

AddRange(ListViewGroupCollection)

Adds the groups in an existing System.Windows.Forms.ListViewGroupCollection to the collection.

Clear()

Removes all groups from the collection.

Contains(ListViewGroup) : bool

Determines whether the specified group is located in the collection.

CopyTo(Array, int)

Copies the groups in the collection to a compatible one-dimensional Array, starting at the specified index of the target array.

GetEnumerator() : IEnumerator

Returns an enumerator used to iterate through the collection.

IndexOf(ListViewGroup) : int

Returns the index of the specified System.Windows.Forms.ListViewGroup within the collection.

Insert(int, ListViewGroup)

Inserts the specified System.Windows.Forms.ListViewGroup into the collection at the specified index.

Remove(ListViewGroup)

Removes the specified System.Windows.Forms.ListViewGroup from the collection.

RemoveAt(int)

Removes the System.Windows.Forms.ListViewGroup at the specified index within the collection.