ControlDesigner.GetDesignTimeHtml Method (DesignerRegionCollection)
.NET Framework 3.0
Retrieves the HTML markup to display the control and populates the collection with the current control designer regions.
Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
public String GetDesignTimeHtml ( DesignerRegionCollection regions )
public function GetDesignTimeHtml ( regions : DesignerRegionCollection ) : String
Not applicable.
Parameters
- regions
A collection of control designer regions for the associated control.
Return Value
The 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.
Community Additions
ADD
Show: