EditableDesignerRegion Class

Note: This class is new in the .NET Framework version 2.0.

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 : public DesignerRegion
public class EditableDesignerRegion extends DesignerRegion
public class EditableDesignerRegion extends DesignerRegion

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. Look at the control in design view, click the View buttons, and for each view drag one of the controls at the bottom into the template. Then look at the HTML markup for the page, and see how the templates are persisted in the page.

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.

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: