Represents a collection of System.Web.UI.Design.DesignerRegion objects within a control designer.
See Also: DesignerRegionCollection Members
The System.Web.UI.Design.ControlDesigner class, and any derived class, uses the System.Web.UI.Design.DesignerRegionCollection class to contain and enumerate the designer regions for the control in a design host, such as vsprvslong.
For example, the ControlDesigner.GetDesignTimeHtml method can be used to define and add regions to the collection.
Use the DesignerRegionCollection.Owner property to access the control designer object that contains the designer region collection. Use the System.Web.UI.Design.DesignerRegionCollection methods and properties to examine and maintain the System.Web.UI.Design.DesignerRegion objects that are in the collection.
The collection dynamically increases as objects are added. Indexes in this collection are zero-based. Use the DesignerRegionCollection.Count property to determine how many designer regions are in the collection. Use the System.Web.UI.Design.DesignerRegionCollection members to provide the following functionality:
The DesignerRegionCollection.Add(DesignerRegion) method to add a single designer region to the collection.
The DesignerRegionCollection.Insert(int, DesignerRegion) method to add a designer region at a particular index within the collection.
The DesignerRegionCollection.Remove(DesignerRegion) method to remove a designer region.
The DesignerRegionCollection.RemoveAt(int) method to remove the designer region at a particular index.
The DesignerRegionCollection.Contains(DesignerRegion) method to determine whether a particular designer region is already in the collection.
The DesignerRegionCollection.IndexOf(DesignerRegion) method to retrieve the index of a designer region within the collection.
The DesignerRegionCollection.Item(int) indexer to get or set the designer region at a particular index, using array notation.
The DesignerRegionCollection.Clear method to remove all designer regions from the collection.