ListView.RemoveItems 方法

定义

删除 ListView 控件的项或组容器中的所有子控件。

protected:
 virtual void RemoveItems();
protected virtual void RemoveItems ();
abstract member RemoveItems : unit -> unit
override this.RemoveItems : unit -> unit
Protected Overridable Sub RemoveItems ()

注解

此方法用于删除控件的项或组容器 ListView 中的所有子控件。 如果在控件中ListView定义了模板GroupTemplate,该方法RemoveItems将删除组容器中的所有子控件。 否则,它将删除项容器中的所有子控件。

备注

此方法主要由控件开发人员用来扩展 ListView 控件。

适用于

另请参阅