DataGridDesigner.SetTemplateContent 方法

定义

注意

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 void SetTemplateContent(System::Web::UI::Design::ITemplateEditingFrame ^ editingFrame, System::String ^ templateName, System::String ^ templateContent);
public override void SetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, string templateContent);
[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 void SetTemplateContent (System.Web.UI.Design.ITemplateEditingFrame editingFrame, string templateName, string templateContent);
override this.SetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * string -> 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")>]
override this.SetTemplateContent : System.Web.UI.Design.ITemplateEditingFrame * string * string -> unit
Public Overrides Sub SetTemplateContent (editingFrame As ITemplateEditingFrame, templateName As String, templateContent As String)

参数

editingFrame
ITemplateEditingFrame

要为其设置内容的 ITemplateEditingFrame

templateName
String

模板的名称。

templateContent
String

模板的新内容。

属性

适用于

另请参阅