Export (0) Print
Expand All

DesignerRegionCollection Class

Represents a collection of DesignerRegion objects within a control designer.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public class DesignerRegionCollection : IList, ICollection, IEnumerable
public class DesignerRegionCollection implements IList, ICollection, 
	IEnumerable
public class DesignerRegionCollection implements IList, ICollection, 
	IEnumerable
Not applicable.

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.

System.Object
  System.Web.UI.Design.DesignerRegionCollection

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft