Udostępnij przez


TemplatedControlDesigner.ExitTemplateMode(Boolean, Boolean, Boolean) Metoda

Definicja

Przestroga

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

Zamyka obecnie aktywną ramkę edycji szablonu po zapisaniu wszelkich odpowiednich zmian.

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)

Parametry

fSwitchingTemplates
Boolean

true podczas przełączania z jednej ramki edycji szablonu do innej; w przeciwnym razie false.

fNested
Boolean

true jeśli ten projektant jest zagnieżdżony (co najmniej jeden poziom) w innej kontrolce, której projektant jest również w trybie edycji szablonu; w przeciwnym razie false.

fSave
Boolean

true jeśli szablony powinny być zapisywane po zakończeniu; w przeciwnym razie , false.

Atrybuty

Uwagi

Uwaga

Metoda ExitTemplateMode jest przestarzała. TemplateGroups Użyj właściwości , aby manipulować szablonami w projektancie na potrzeby kontrolek opartych na szablonach.

Dotyczy

Zobacz też