ListViewGroupCollection.RemoveAt(Int32) 方法

定義

移除集合中位於指定索引處的 ListViewGroup

public:
 virtual void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

參數

index
Int32

集合內要移除之 ListViewGroup 的索引。

實作

備註

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

若要使用 物件的參考移除群組,請改用 Remove 方法。 若要從集合中移除所有群組,請使用 Clear 方法。 當您從集合中移除專案時,集合中後續專案的索引會變更。 已刪除已移除專案的所有資訊。

適用於