FormViewDesigner.GetEmptyDesignTimeHtml 方法

定义

获取用于在设计时呈现关联控件占位符的标记文本。

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

返回

一个 String,包含在设计图面上呈现到占位符的标记文本。

注解

如果控件的 FormView 标记不包含其中一个项模板,则 GetDesignTimeHtml 该方法将调用 GetEmptyDesignTimeHtml 方法,该方法为包含有关如何编辑模板内容的说明的占位符生成标记,以及一条消息,指出需要项模板。

适用于

另请参阅