ListView.ListViewItemCollection.Clear ListView.ListViewItemCollection.Clear ListView.ListViewItemCollection.Clear ListView.ListViewItemCollection.Clear Method

定义

从集合中移除所有项。Removes all items from the collection.

public:
 virtual void Clear();
public virtual void Clear ();
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
Public Overridable Sub Clear ()

实现

注解

从集合中移除项时,有关已删除项的所有信息都将丢失。When you remove items from the collection, all information about the deleted items is lost. 若要从集合中删除单个项,请使用RemoveRemoveAt方法。To remove a single item from the collection, use the Remove or RemoveAt method.

适用于

另请参阅