共用方式為


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 以儲存其所有範本並關閉該框架。

適用於

另請參閱