DesignerRegionCollection Class
Represents a collection of DesignerRegion objects within a control designer.
Assembly: System.Design (in System.Design.dll)
The DesignerRegionCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DesignerRegionCollection() | Initializes a new instance of the DesignerRegionCollection class. |
![]() | DesignerRegionCollection(ControlDesigner) | Initializes a new instance of the DesignerRegionCollection class for the specified control designer. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of DesignerRegion objects in the collection. |
![]() | IsFixedSize | Gets a value indicating whether the DesignerRegionCollection object has a fixed size. |
![]() | IsReadOnly | Gets a value indicating whether the DesignerRegionCollection object is read-only. |
![]() | IsSynchronized | Gets a value indicating whether access to the DesignerRegionCollection object is synchronized (thread safe). |
![]() | Item | Gets or sets a DesignerRegion object at the specified index in the collection. |
![]() | Owner | Gets the control designer that owns the designer region collection. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the DesignerRegionCollection object. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds the specified DesignerRegion object to the end of the collection. |
![]() | Clear | Removes all regions from the collection. |
![]() | Contains | Gets a value indicating whether the specified region is contained within the collection. |
![]() | CopyTo | Copies the elements of the collection to an Array object, starting at a particular Array index. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf | Returns the index of the specified DesignerRegion object within the collection. |
![]() | Insert | Inserts a DesignerRegion object into the collection at the specified index. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes the specified DesignerRegion object from the collection. |
![]() | RemoveAt | Removes the DesignerRegion object at the specified index within the collection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Infrastructure. For a description of this member, see CopyTo. |
![]() ![]() | ICollection::Count | Infrastructure. For a description of this member, see ICollection::Count. |
![]() ![]() | ICollection::IsSynchronized | Infrastructure. For a description of this member, see ICollection::IsSynchronized. |
![]() ![]() | ICollection::SyncRoot | Infrastructure. For a description of this member, see ICollection::SyncRoot. |
![]() ![]() | IEnumerable::GetEnumerator | Infrastructure. For a description of this member, see IEnumerable::GetEnumerator. |
![]() ![]() | IList::Add | Infrastructure. For a description of this member, see IList::Add. |
![]() ![]() | IList::Clear | Infrastructure. For a description of this member, see IList::Clear. |
![]() ![]() | IList::Contains | Infrastructure. For a description of this member, see IList::Contains. |
![]() ![]() | IList::IndexOf | Infrastructure. For a description of this member, see IList::IndexOf. |
![]() ![]() | IList::Insert | Infrastructure. For a description of this member, see IList::Insert. |
![]() ![]() | IList::IsFixedSize | Infrastructure. For a description of this member, see IList::IsFixedSize. |
![]() ![]() | IList::IsReadOnly | Infrastructure. For a description of this member, see IList::IsReadOnly. |
![]() ![]() | IList::Item | Infrastructure. For a description of this member, see IList::Item. |
![]() ![]() | IList::Remove | Infrastructure. For a description of this member, see IList::Remove. |
![]() ![]() | IList::RemoveAt | Infrastructure. For a description of this member, see IList::RemoveAt. |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.






