This documentation is archived and is not being maintained.

ControlDesigner.SetRegionContent Method

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

Namespace: System.Web.UI.Design
Assembly: System.Design (in

protected void SetRegionContent (
	EditableDesignerRegion region,
	string content
protected void SetRegionContent (
	EditableDesignerRegion region, 
	String content
protected function SetRegionContent (
	region : EditableDesignerRegion, 
	content : String
Not applicable.



An editable design region contained within the design-time view of the control.


The content to assign for the editable design region.

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

Use the SetRegionContent method to insert HTML markup into a region of the control.

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