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 中的所有子控件。 如果 GroupTemplate 控件中 ListView 定义了模板,该方法 RemoveItems 将删除组容器中的所有子控件。 否则,它将删除项容器中的所有子控件。

注释

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

适用于

另请参阅