TemplatedControlDesigner.EnterTemplateMode(ITemplateEditingFrame) 方法

定义

注意

Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202

打开特定的模板框对象以在设计器中进行编辑。

public:
 void EnterTemplateMode(System::Web::UI::Design::ITemplateEditingFrame ^ newTemplateEditingFrame);
public void EnterTemplateMode (System.Web.UI.Design.ITemplateEditingFrame newTemplateEditingFrame);
[System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public void EnterTemplateMode (System.Web.UI.Design.ITemplateEditingFrame newTemplateEditingFrame);
member this.EnterTemplateMode : System.Web.UI.Design.ITemplateEditingFrame -> unit
[<System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.EnterTemplateMode : System.Web.UI.Design.ITemplateEditingFrame -> unit
Public Sub EnterTemplateMode (newTemplateEditingFrame As ITemplateEditingFrame)

参数

newTemplateEditingFrame
ITemplateEditingFrame

要在设计器中打开的模板编辑框对象。

属性

注解

注意

方法 EnterTemplateMode 已过时。 TemplateGroups使用 属性操作基于模板的控件的设计器中的模板。

如果已处于模板模式并编辑其他模板框架,此方法将调用 ExitTemplateMode 以保存其所有模板并关闭该框架。

适用于

另请参阅