System.Web.UI.Design.TemplatedControlDesigner.EnterTemplateMode Method

Opens a particular template frame object for editing in the designer.

Syntax

[System.Obsolete("Template editing is supported in ControlDesigner.TemplateGroups with SetViewFlags(ViewFlags.TemplateEditing, true) in 2.0.")]
public void EnterTemplateMode (ITemplateEditingFrame newTemplateEditingFrame)

Parameters

newTemplateEditingFrame
The template editing frame object to open in the designer.

Remarks

Note:

The TemplatedControlDesigner.EnterTemplateMode(ITemplateEditingFrame) method is obsolete. Use the TemplatedControlDesigner.TemplateGroups property to manipulate templates within a designer for template-based controls.

If already in template mode and editing a different template frame, this method calls TemplatedControlDesigner.ExitTemplateMode(bool, bool, bool) to save all its templates and close that frame.

Requirements

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