System.Web.UI.Design.TemplateGroupCollection.Add Method

Adds the specified System.Web.UI.Design.TemplateGroup object to the end of the collection.

Syntax

public int Add (TemplateGroup group)

Parameters

group
The System.Web.UI.Design.TemplateGroup to add to the collection.

Returns

The index at which the System.Web.UI.Design.TemplateGroup was added to the collection.

Remarks

The TemplateGroupCollection.Add(TemplateGroup) method adds the specified System.Web.UI.Design.TemplateGroup object to the end of the collection. To add a System.Web.UI.Design.TemplateGroup object to the collection at a specific index location, use the TemplateGroupCollection.Insert(int, TemplateGroup) method.

To add multiple groups to the collection, use the TemplateGroupCollection.AddRange(TemplateGroupCollection) method.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0