System.Web.UI.Design.TemplateGroupCollection.Insert Method

Inserts a System.Web.UI.Design.TemplateGroup object into the collection at the specified index.

Syntax

public void Insert (int index, TemplateGroup group)

Parameters

index
The zero-based index within the collection at which to insert group.
group
The System.Web.UI.Design.TemplateGroup to insert into the collection.

Remarks

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

Note:

When you insert an item into the collection, the indexes change for subsequent items in the collection.

Requirements

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