語言

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

屬性

備註

Note

這種 ExitTemplateMode 方法已經過時了。 利用這個 TemplateGroups 屬性在設計器中操作模板,以實現基於範本的控制項。

適用於

另請參閱