Bagikan melalui


TemplatedControlDesigner.EnterTemplateMode(ITemplateEditingFrame) 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

Membuka objek bingkai templat tertentu untuk pengeditan di perancang.

public:
 void EnterTemplateMode(System::Web::UI::Design::ITemplateEditingFrame ^ newTemplateEditingFrame);
public void EnterTemplateMode (System.Web.UI.Design.ITemplateEditingFrame newTemplateEditingFrame);
[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 EnterTemplateMode (System.Web.UI.Design.ITemplateEditingFrame newTemplateEditingFrame);
member this.EnterTemplateMode : System.Web.UI.Design.ITemplateEditingFrame -> 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.EnterTemplateMode : System.Web.UI.Design.ITemplateEditingFrame -> unit
Public Sub EnterTemplateMode (newTemplateEditingFrame As ITemplateEditingFrame)

Parameter

newTemplateEditingFrame
ITemplateEditingFrame

Objek bingkai pengeditan templat untuk dibuka di perancang.

Atribut

Keterangan

Catatan

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

Jika sudah dalam mode templat dan mengedit bingkai templat yang berbeda, metode ini memanggil ExitTemplateMode untuk menyimpan semua templatnya dan menutup bingkai tersebut.

Berlaku untuk

Lihat juga