WindowsFormsComponentEditor.GetComponentEditorPages 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与组件编辑器关联的组件编辑器页。
protected:
virtual cli::array <Type ^> ^ GetComponentEditorPages();
protected virtual Type[] GetComponentEditorPages();
protected virtual Type[]? GetComponentEditorPages();
abstract member GetComponentEditorPages : unit -> Type[]
override this.GetComponentEditorPages : unit -> Type[]
Protected Overridable Function GetComponentEditorPages () As Type()
返回
Type[]
组件编辑器页的数组。
示例
下面的代码示例演示方法重写的示例实现 GetComponentEditorPages 。
// This method override returns an type array containing the type of
// each component editor page to display.
protected override Type[] GetComponentEditorPages() => [typeof(ExampleComponentEditorPage), typeof(ExampleComponentEditorPage)];
继承者说明
必须重写此方法才能实现此方法的功能。