System.Web.UI.Design.ControlDesigner.SetRegionContent Method

Specifies the content for an editable region in the design-time view of the control.

Syntax

protected void SetRegionContent (EditableDesignerRegion region, string content)

Parameters

region
An editable design region contained within the design-time view of the control.
content
The content to assign for the editable design region.

Remarks

Normally, the ControlDesigner.SetRegionContent(EditableDesignerRegion, string) method is not overridden in derived designers. The base class causes the design host to call the ControlDesigner.SetEditableDesignerRegionContent(EditableDesignerRegion, string) method for the region. Override the ControlDesigner.SetRegionContent(EditableDesignerRegion, string) method when custom data is required for the control before calling ControlDesigner.SetEditableDesignerRegionContent(EditableDesignerRegion, string) method.

Use the ControlDesigner.SetRegionContent(EditableDesignerRegion, string) method to insert HTML markup into a region of the control.

Requirements

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