ListViewGroupCollection.Remove(ListViewGroup) 方法

定義

從集合移除指定的 ListViewGroup

public:
 void Remove(System::Windows::Forms::ListViewGroup ^ group);
public void Remove (System.Windows.Forms.ListViewGroup group);
member this.Remove : System.Windows.Forms.ListViewGroup -> unit
Public Sub Remove (group As ListViewGroup)

參數

group
ListViewGroup

要從集合中移除的 ListViewGroup

備註

當您有群組的參考時,請使用這個方法從集合中移除群組。 請注意,從 ListView.Groups 集合中移除群組並不會移除 控制項中的 ListView 專案。

若要移除位於特定索引的群組,請改用 RemoveAt 方法。 若要從集合中移除所有群組,請使用 Clear 方法。

適用於

另請參閱