Redigera

Dela via


ListViewItem.Remove Method

Definition

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.

Applies to

See also