System.Web.UI.Design.ControlDesigner.GetEditableDesignerRegionContent Method

Returns the content for an editable region of the design-time view of the associated control.

Syntax

public virtual string GetEditableDesignerRegionContent (EditableDesignerRegion region)

Parameters

region
The System.Web.UI.Design.EditableDesignerRegion object to get content for.

Returns

The persisted content for the region, if the control designer supports editable regions; otherwise, an empty string ("").

Remarks

The default implementation of the ControlDesigner.GetEditableDesignerRegionContent(EditableDesignerRegion) method returns an empty string ("").

Classes deriving from the System.Web.UI.Design.ControlDesigner class can support region-based editing on the design surface and override the ControlDesigner.GetEditableDesignerRegionContent(EditableDesignerRegion) method to return the content for a specified region.

Requirements

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