DesignerRegionCollection Class
TOC
Collapse the table of content
Expand the table of content

DesignerRegionCollection Class

 

Represents a collection of DesignerRegion objects within a control designer.

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

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

public class DesignerRegionCollection : IList, ICollection, IEnumerable

NameDescription
System_CAPS_pubmethodDesignerRegionCollection()

Initializes a new instance of the DesignerRegionCollection class.

System_CAPS_pubmethodDesignerRegionCollection(ControlDesigner)

Initializes a new instance of the DesignerRegionCollection class for the specified control designer.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of DesignerRegion objects in the collection.

System_CAPS_pubpropertyIsFixedSize

Gets a value indicating whether the DesignerRegionCollection object has a fixed size.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the DesignerRegionCollection object is read-only.

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether access to the DesignerRegionCollection object is synchronized (thread safe).

System_CAPS_pubpropertyItem[Int32]

Gets or sets a DesignerRegion object at the specified index in the collection.

System_CAPS_pubpropertyOwner

Gets the control designer that owns the designer region collection.

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the DesignerRegionCollection object.

NameDescription
System_CAPS_pubmethodAdd(DesignerRegion)

Adds the specified DesignerRegion object to the end of the collection.

System_CAPS_pubmethodClear()

Removes all regions from the collection.

System_CAPS_pubmethodContains(DesignerRegion)

Gets a value indicating whether the specified region is contained within the collection.

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the elements of the collection to an Array object, starting at a particular Array index.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the collection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(DesignerRegion)

Returns the index of the specified DesignerRegion object within the collection.

System_CAPS_pubmethodInsert(Int32, DesignerRegion)

Inserts a DesignerRegion object into the collection at the specified index.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(DesignerRegion)

Removes the specified DesignerRegion object from the collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the DesignerRegion object at the specified index within the collection.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see CopyTo.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IEnumerable.GetEnumerator.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Add(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Add.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Clear()

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Clear.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Contains.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.IndexOf.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Insert.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Remove(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Remove.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.RemoveAt(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.RemoveAt.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.Count

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see ICollection.Count.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.IsSynchronized

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see ICollection.IsSynchronized.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.SyncRoot

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see ICollection.SyncRoot.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsFixedSize

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.IsFixedSize.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsReadOnly

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.IsReadOnly.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.Item[Int32]

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Item.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

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.

.NET Framework
Available since 2.0

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

Return to top
Show:
© 2016 Microsoft