DataListDesigner.GetTemplateContent(ITemplateEditingFrame, String, Boolean) Método
Definição
Cuidado
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
Obtém o conteúdo do modelo.Gets the content of the template.
public:
override System::String ^ GetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, [Runtime::InteropServices::Out] bool % allowEditing);
public override string GetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
[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 override string GetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, out bool allowEditing);
override this.GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
[<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")>]
override this.GetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * bool -> string
Public Overrides Function GetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, ByRef allowEditing As Boolean) As String
Parâmetros
- editingFrame
- ITemplateEditingFrame
A instância ITemplateEditingFrame da qual obter o conteúdo.The ITemplateEditingFrame instance from which to get the content.
- templateName
- String
O nome do modelo.The name of the template.
- allowEditing
- Boolean
true se o conteúdo do modelo puder ser editado; false se o conteúdo for somente leitura.true if the template's content can be edited; false if the content is read-only.
Retornos
O conteúdo do modelo.The content of the template.
- Atributos
Comentários
Em vez de usar quadros de edição, use grupos de modelos e regiões de edição de designer.Rather than using editing frames, use template groups and designer editing regions. Para obter mais informações, consulte TemplateGroups e DesignerRegion.For more information, see TemplateGroups and DesignerRegion.