TemplateGroupCollection.RemoveAt(Int32) TemplateGroupCollection.RemoveAt(Int32) TemplateGroupCollection.RemoveAt(Int32) TemplateGroupCollection.RemoveAt(Int32) Method

定義

移除位於集合中指定索引上的 TemplateGroup 物件。Removes the TemplateGroup object at the specified index within the collection.

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

參數

index
Int32 Int32 Int32 Int32

TemplateGroup 的集合內要移除之以零起始的索引。The zero-based index within the collection of the TemplateGroup to remove.

實作

例外狀況

index 小於零。index is less than zero.

-或--or- index 大於 Count 屬性。index is greater than the Count property.

備註

使用RemoveAt方法,以從集合中移除特定索引處的群組。Use the RemoveAt method to remove a group at a particular index from the collection. 若要從集合移除指定的群組,請使用Remove方法。To remove a specified group from the collection, use the Remove method. 若要從集合移除所有群組,請使用Clear方法。To remove all the groups from the collection, use the Clear method.

注意

當您從集合移除項目時,在集合中的後續項目索引將會變更。When you remove an item from the collection, the indexes change for subsequent items in the collection.

適用於

另請參閱