Inserts a System.Web.UI.Design.TemplateGroup object into the collection at the specified index.
- 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.
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.
When you insert an item into the collection, the indexes change for subsequent items in the collection.