Bagikan melalui


TemplatedControlDesigner.ExitTemplateMode(Boolean, Boolean, Boolean) Metode

Definisi

Perhatian

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

Menutup bingkai pengeditan templat yang saat ini aktif setelah menyimpan perubahan yang relevan.

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)

Parameter

fSwitchingTemplates
Boolean

true saat beralih dari satu bingkai pengeditan templat ke bingkai lainnya; jika tidak false.

fNested
Boolean

true jika perancang ini berlapis (satu atau beberapa tingkat) dalam kontrol lain yang perancangnya juga dalam mode pengeditan templat; jika tidak false.

fSave
Boolean

true jika templat harus disimpan saat keluar; jika tidak, false.

Atribut

Keterangan

Catatan

Metode ExitTemplateMode ini usang. TemplateGroups Gunakan properti untuk memanipulasi templat dalam perancang untuk kontrol berbasis templat.

Berlaku untuk

Lihat juga