共用方式為


TemplatedControlDesigner.ExitTemplateMode(Boolean, Boolean, Boolean) 方法

定義

警告

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 ExitTemplateMode(bool fSwitchingTemplates, bool fNested, bool fSave);
public void ExitTemplateMode (bool fSwitchingTemplates, bool fNested, bool fSave);
[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 ExitTemplateMode (bool fSwitchingTemplates, bool fNested, bool fSave);
member this.ExitTemplateMode : bool * bool * bool -> 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.ExitTemplateMode : bool * bool * bool -> unit
Public Sub ExitTemplateMode (fSwitchingTemplates As Boolean, fNested As Boolean, fSave As Boolean)

參數

fSwitchingTemplates
Boolean

當從一個樣板編輯框架切換至另一個框架時則為 true,否則為 false

fNested
Boolean

如果這個設計工具是位於另一個控制項的巢狀 (一個或多個層級) 結構內,而該控制項的設計工具也處於樣板編輯模式時,則為 true,否則為 false

fSave
Boolean

如果應該在結束時儲存樣板則為 true,否則為 false

屬性

備註

注意

方法 ExitTemplateMode 已過時。 TemplateGroups使用屬性來操作範本型控件設計工具內的範本。

適用於

另請參閱