EditorZoneBase.CreateEditorPartChrome 方法

定義

取得新 EditorPartChrome 物件的參考,該物件用於呈現 EditorZoneBase 區域的週邊使用者介面 (UI) 項目。

protected:
 virtual System::Web::UI::WebControls::WebParts::EditorPartChrome ^ CreateEditorPartChrome();
protected virtual System.Web.UI.WebControls.WebParts.EditorPartChrome CreateEditorPartChrome ();
abstract member CreateEditorPartChrome : unit -> System.Web.UI.WebControls.WebParts.EditorPartChrome
override this.CreateEditorPartChrome : unit -> System.Web.UI.WebControls.WebParts.EditorPartChrome
Protected Overridable Function CreateEditorPartChrome () As EditorPartChrome

傳回

EditorPartChrome

EditorPartChrome,呈現區域的週邊 UI 項目。

備註

方法會 CreateEditorPartChrome 傳回新的 EditorPartChrome 物件。 Chrome 包含下列周邊 UI 元素,可圍繞區域中每個個別 EditorPart 控制項:框線、標題列、標題列內顯示的專案,包括選擇性圖示、標題文字和動詞功能表;以及出現在控制項頁尾區域中的專案。

方法 CreateEditorPartChrome 會使用傳 EditorPartChrome 回的物件來建立每個 EditorPart 控制項周圍的 Chrome。

給繼承者的注意事項

方法 CreateEditorPartChrome() 可以在衍生類別中覆寫,以提供不同的實作。 例如,您可以建立自訂 EditorPartChrome 類別,讓您更充分掌控編輯 UI 的轉譯和外觀。 如果您在衍生區域中覆寫 CreateEditorPartChrome() 方法,則可以在覆寫的 方法中建立自訂 EditorPartChrome 物件。

適用於

另請參閱