語言

ListViewDesigner.GetEmptyDesignTimeHtml 方法

定義

產生代表 ListView 設計時控制項的 HTML 標記,執行時則無視覺化表示。

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

傳回

代表設計時控制項的 HTML 標記 ListView 。

備註

GetEmptyDesignTimeHtml若未定義兩個控制項所需的範本ListView(ListView與ListView.LayoutTemplate)時,設計者會使用此方法來渲染ListView.ItemTemplate控制項。 該 GetEmptyDesignTimeHtml 方法呼叫 方法 CreatePlaceHolderDesignTimeHtml(String) 建立一個佔位符,顯示控制項的型別與 ID,以及使用者的額外指令。

適用於

另請參閱