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使用 属性操作基于模板的控件的设计器中的模板。

适用于

另请参阅