TemplatedControlDesigner.EnterTemplateMode(ITemplateEditingFrame) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Nota
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.