ListView.ListViewItemCollection.Remove(ListViewItem) ListView.ListViewItemCollection.Remove(ListViewItem) ListView.ListViewItemCollection.Remove(ListViewItem) ListView.ListViewItemCollection.Remove(ListViewItem) Method


Removes the specified item from the collection.

 virtual void Remove(System::Windows::Forms::ListViewItem ^ item);
public virtual void Remove (System.Windows.Forms.ListViewItem item);
abstract member Remove : System.Windows.Forms.ListViewItem -> unit
override this.Remove : System.Windows.Forms.ListViewItem -> unit
Public Overridable Sub Remove (item As ListViewItem)


ListViewItem ListViewItem ListViewItem ListViewItem

A ListViewItem representing the item to remove from the collection.



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. You can use this method to remove a specific item from the collection by specifying the actual item to remove. To specify the index of the item to remove instead of the item itself, use the RemoveAt method. To remove all items from the collection, use the Clear method.

Applies to

See also