ControlDesigner.GetDesignTimeHtml Method (DesignerRegionCollection)

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)

public:
virtual String^ GetDesignTimeHtml (
	DesignerRegionCollection^ regions
)
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.

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: