FormViewDesigner.GetEmptyDesignTimeHtml 方法

定义

获取用于在设计时呈现关联控件占位符的标记文本。Gets the markup text that is used to render a placeholder for the associated control at design time.

protected:
 override System::String ^ GetEmptyDesignTimeHtml();
protected override string GetEmptyDesignTimeHtml ();
override this.GetEmptyDesignTimeHtml : unit -> string
Protected Overrides Function GetEmptyDesignTimeHtml () As String

返回

String

一个 String,包含在设计图面上呈现到占位符的标记文本。A String containing markup text that renders to a placeholder on the design surface.

注解

如果控件的标记不 FormView 包括其中一个项模板,则 GetDesignTimeHtml 方法将调用 GetEmptyDesignTimeHtml 方法,该方法将生成占位符的标记,其中包含有关如何编辑模板内容的说明以及项模板所需的消息。If the markup for the FormView control does not include one of the item templates, the GetDesignTimeHtml method calls the GetEmptyDesignTimeHtml method, which generates the markup for a placeholder that contains instructions on how to edit template content and a message that an item template is required.

适用于

另请参阅