TemplateGroupCollection.Add(TemplateGroup) TemplateGroupCollection.Add(TemplateGroup) TemplateGroupCollection.Add(TemplateGroup) TemplateGroupCollection.Add(TemplateGroup) Method

定義

將指定的 TemplateGroup 物件加入至集合的尾端。Adds the specified TemplateGroup object to the end of the collection.

public:
 int Add(System::Web::UI::Design::TemplateGroup ^ group);
public int Add (System.Web.UI.Design.TemplateGroup group);
member this.Add : System.Web.UI.Design.TemplateGroup -> int
Public Function Add (group As TemplateGroup) As Integer

參數

group
TemplateGroup TemplateGroup TemplateGroup TemplateGroup

要加入至集合的 TemplateGroupThe TemplateGroup to add to the collection.

傳回

集合中已加入 TemplateGroup 的索引。The index at which the TemplateGroup was added to the collection.

備註

Add方法將指定TemplateGroup物件至集合結尾。The Add method adds the specified TemplateGroup object to the end of the collection. 若要新增TemplateGroup物件集合中特定索引位置,使用Insert方法。To add a TemplateGroup object to the collection at a specific index location, use the Insert method.

若要加入集合中的多個群組,請使用AddRange方法。To add multiple groups to the collection, use the AddRange method.

適用於

另請參閱