ListViewDesigner.GetDesignTimeHtml 方法
定义
重载
| GetDesignTimeHtml() |
生成用于在设计时呈现关联的 ListView 控件的 HTML 标记。Generates the HTML markup that is used to render the associated ListView control at design time. |
| GetDesignTimeHtml(DesignerRegionCollection) |
生成用于在设计器呈现关联的 ListView 控件的 HTML 标记,并用当前选定的设计器区域填充指定集合。Generates the HTML markup that is used to render the associated ListView control at design time, and populates the specified collection with the currently selected designer region. |
GetDesignTimeHtml()
public:
override System::String ^ GetDesignTimeHtml();
public override string GetDesignTimeHtml ();
override this.GetDesignTimeHtml : unit -> string
Public Overrides Function GetDesignTimeHtml () As String
返回
用于在设计时呈现关联的 ListView 控件的 HTML 标记。The HTML markup that is used to render the associated ListView control at design time.
注解
如果没有为控件 (和) 的两个必需模板 ListView ListView.LayoutTemplate ListView.ItemTemplate 进行定义,则 GetDesignTimeHtml() 方法将调用 GetEmptyDesignTimeHtml 方法来生成 HTML 标记。If the two required templates for the ListView control (ListView.LayoutTemplate and ListView.ItemTemplate) are not defined, the GetDesignTimeHtml() method calls the GetEmptyDesignTimeHtml method to generate the HTML markup.
另请参阅
- ListView
- LayoutTemplate
- ItemTemplate
- GetEmptyDesignTimeHtml()
- ListView Web 服务器控件ListView Web Server Control
适用于
GetDesignTimeHtml(DesignerRegionCollection)
public:
override System::String ^ GetDesignTimeHtml(System::Web::UI::Design::DesignerRegionCollection ^ regions);
public override string GetDesignTimeHtml (System.Web.UI.Design.DesignerRegionCollection regions);
override this.GetDesignTimeHtml : System.Web.UI.Design.DesignerRegionCollection -> string
Public Overrides Function GetDesignTimeHtml (regions As DesignerRegionCollection) As String
参数
- regions
- DesignerRegionCollection
关联的 ListView 控件的设计器区域集合。A collection of designer regions for the associated ListView control.
返回
用于在设计时呈现关联的 ListView 控件的 HTML 标记。The HTML markup that is used to render the associated ListView control at design time.