EditorZoneBase.CreateEditorPartChrome 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对用于在区域周围EditorPartChrome呈现外围用户界面 (UI) 元素的新EditorZoneBase对象的引用。
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
返回
呈现区域的外围 UI 元素的一个 EditorPartChrome 。
注解
该方法 CreateEditorPartChrome 返回一个新 EditorPartChrome 对象。 Chrome 包括以下外围 UI 元素,这些元素围绕区域中每个控件 EditorPart :边框;标题栏;标题栏中显示的项目,包括可选图标、标题文本和谓词菜单;以及显示在控件页脚区域中的项目。
该方法 CreateEditorPartChrome 使用返回 EditorPartChrome 的对象在每个控件周围 EditorPart 创建部件版式。
继承者说明
CreateEditorPartChrome()可以在派生类中重写该方法,以提供不同的实现。 例如,可以创建自定义 EditorPartChrome 类,以便更好地控制编辑 UI 的呈现和外观。 如果重写 CreateEditorPartChrome() 派生区域中的方法,则可以在重写的方法中创建自定义 EditorPartChrome 对象。