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