ListViewItem.Remove 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 item from its associated ListView control.
public:
virtual void Remove();
public virtual void Remove ();
abstract member Remove : unit -> unit
override this.Remove : unit -> unit
Public Overridable Sub Remove ()
Remarks
This method is similar in function to the Remove method of the ListView.ListViewItemCollection in the ListView control that contains the item. You can use the Remove method to remove an item from its ListView control. This feature can be useful if you want to move the item to a different ListView control or need to remove the item based on a request from the user to remove the item from within your application.