ControlDesigner::GetDesignTimeHtml Method (DesignerRegionCollection)
Retrieves the HTML markup to display the control and populates the collection with the current control designer regions.
Assembly: System.Design (in System.Design.dll)
Parameters
- regions
- Type: System.Web.UI.Design::DesignerRegionCollection
A collection of control designer regions for the associated control.
Return Value
Type: System::StringThe design-time HTML markup for the associated control, including all control designer regions.
The design host calls the GetDesignTimeHtml method to get the design-time HTML markup and the current list of control designer regions. Using the DesignerRegionCollection, the design host can then request the markup for each editable control designer region.
The GetDesignTimeHtml method is provided for a derived control designer, such as the GridViewDesigner class, that must process the content for the region before calling the GetDesignTimeHtml method.
The following code example shows how to create HTML markup using the DesignerRegionCollection collection.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.