System.Windows.Forms.ListViewItem.Remove Method

Removes the item from its associated System.Windows.Forms.ListView control.

Syntax

public virtual void Remove ()

Remarks

This method is similar in function to the System.Windows.Forms.ListView.ListViewItemCollection.Remove(ListViewItem) method of the System.Windows.Forms.ListView.ListViewItemCollection in the System.Windows.Forms.ListView control that contains the item. You can use the ListViewItem.Remove method to remove an item from its System.Windows.Forms.ListView control. This feature can be useful if you want to move the item to a different System.Windows.Forms.ListView control or need to remove the item based on a request from the user to remove the item from within your application.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0