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

为区域呈现外围 UI 元素的 EditorPartChrome

注解

该方法 CreateEditorPartChrome 返回一个新 EditorPartChrome 对象。 Chrome 包括以下围绕区域中每个控件 EditorPart 的外围 UI 元素:边框、标题栏、标题栏中显示的项目,包括可选图标、标题文本和谓词菜单;以及显示在控件页脚区域中的项目。

该方法 CreateEditorPartChrome 使用返回 EditorPartChrome 的对象围绕每个 EditorPart 控件创建部件版式。

继承者说明

CreateEditorPartChrome()可以在派生类中重写该方法,以提供不同的实现。 例如,可以创建自定义 EditorPartChrome 类,以便更好地控制编辑 UI 的呈现和外观。 如果在派生区域中重写 CreateEditorPartChrome() 该方法,则可以在重写的方法中创建自定义 EditorPartChrome 对象。

适用于

另请参阅