EditableDesignerRegion Class

 

Represents an editable content region within the design-time markup for the associated control.

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


public ref class EditableDesignerRegion : DesignerRegion

NameDescription
System_CAPS_pubmethodEditableDesignerRegion(ControlDesigner^, String^)

Initializes a new instance of the EditableDesignerRegion class using the given owner and name.

System_CAPS_pubmethodEditableDesignerRegion(ControlDesigner^, String^, Boolean)

Creates a new instance of the EditableDesignerRegion class using the given owner and name and the initial value of the ServerControlsOnly property.

NameDescription
System_CAPS_pubpropertyContent

Gets or sets the HTML markup for the content of the region.

System_CAPS_pubpropertyDescription

Gets or sets the description for a designer region.(Inherited from DesignerRegion.)

System_CAPS_pubpropertyDesigner

Gets the associated designer component.(Inherited from DesignerObject.)

System_CAPS_pubpropertyDisplayName

Gets or sets the friendly display name for a designer region.(Inherited from DesignerRegion.)

System_CAPS_pubpropertyEnsureSize

Gets or sets a value indicating whether the region size is to be explicitly set on the designer region by the design host.(Inherited from DesignerRegion.)

System_CAPS_pubpropertyHighlight

Gets or sets a value indicating whether to highlight the designer region on the design surface.(Inherited from DesignerRegion.)

System_CAPS_pubpropertyName

Gets the name of the object.(Inherited from DesignerObject.)

System_CAPS_pubpropertyProperties

Gets the object's properties.(Inherited from DesignerObject.)

System_CAPS_pubpropertySelectable

Gets or sets a value indicating whether the designer region can be selected by the user on the design surface.(Inherited from DesignerRegion.)

System_CAPS_pubpropertySelected

Gets or sets a value indicating whether the designer region is currently selected on the design surface.(Inherited from DesignerRegion.)

System_CAPS_pubpropertyServerControlsOnly

Gets or sets a value indicating whether the region can accept only Web server controls.

System_CAPS_pubpropertySupportsDataBinding

Gets or sets a value indicating whether the region can be bound to a data source.

System_CAPS_pubpropertyUserData

Gets or sets optional user data to associate with the designer region.(Inherited from DesignerRegion.)

NameDescription
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_pubmethodGetBounds()

Retrieves the size of the designer region on the design surface.(Inherited from DesignerRegion.)

System_CAPS_pubmethodGetChildViewRendering(Control^)

Returns a ViewRendering object containing the design-time HTML markup for the given control.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_protmethodGetService(Type^)

Gets a service from the design host, as identified by the provided type.(Inherited from DesignerObject.)

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodToString()

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

Use the EditableDesignerRegion class to help manage templates at design time. A ControlDesigner will use an instance of this class with its GetEditableDesignerRegionContent method to generate HTML markup of the region's content.

This example shows how to create a control with two clickable regions and an EditableDesignerRegion object with two views, or templates. Compile the project, then open the page in a visual designer and switch to design (WYSIWYG) view. There are two clickable views, View1 and View2. Click View1 and drag the CheckBox control from the lower part of the page into the empty designer region just below the clickable regions. Click View2 and drag the RadioButton control into the empty designer region. Click View1 again, and the region with the CheckBox reappears. Click View2 and the region with the RadioButton reappears. Switch back to source view to see how your changes are persisted in the HTML markup

System_CAPS_noteNote

Your project must have a reference to the System.Design.dll assembly.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.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: