WindowsFormsComponentEditor.GetComponentEditorPages 方法

定义

获取与组件编辑器关联的组件编辑器页。

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()
{
    return new Type[] { typeof(ExampleComponentEditorPage),
                        typeof(ExampleComponentEditorPage) };
}

继承者说明

必须重写此方法才能实现此方法的功能。

适用于