ListViewGroupCollection.RemoveAt(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the ListViewGroup at the specified index within the collection.
public:
virtual void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
Parameters
- index
- Int32
The index within the collection of the ListViewGroup to remove.
Implements
Remarks
Use this method to remove a group from the collection when you have the index of the group within the collection. Note that removing groups from the ListView.Groups collection does not remove items from the ListView control.
To remove a group using a reference to the object, use the Remove method instead. To remove all the groups from the collection, use the Clear method. When you remove an item from the collection, the indexes change for subsequent items in the collection. All information about the removed item is deleted.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om