ControlDesigner.SetRegionContent Method

Note: This method is new in the .NET Framework version 2.0.

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



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.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0