Share via


WindowsFormsComponentEditor.GetComponentEditorPages 方法

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

**命名空间:**System.Windows.Forms.Design
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)

语法

声明
Protected Overridable Function GetComponentEditorPages As Type()
用法
Dim returnValue As Type()

returnValue = Me.GetComponentEditorPages
protected virtual Type[] GetComponentEditorPages ()
protected:
virtual array<Type^>^ GetComponentEditorPages ()
protected Type[] GetComponentEditorPages ()
protected function GetComponentEditorPages () : Type[]

返回值

组件编辑器页的数组。

备注

给继承者的说明 您必须重写此方法来实现用于此方法的功能。

示例

下面的代码示例阐释了 GetComponentEditorPages 方法重写的实现示例。

' This method override returns an type array containing the type of 
' each component editor page to display.
Protected Overrides Function GetComponentEditorPages() As Type()
    Return New Type() {GetType(ExampleComponentEditorPage), GetType(ExampleComponentEditorPage)}
End Function
// 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) }; 
}
protected:
   // This method override returns an type array containing the type of 
   // each component editor page to display.
   virtual array<Type^>^ GetComponentEditorPages() override
   {
      array<Type^>^temp0 = {ExampleComponentEditorPage::typeid,ExampleComponentEditorPage::typeid};
      return temp0;
   }

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

WindowsFormsComponentEditor 类
WindowsFormsComponentEditor 成员
System.Windows.Forms.Design 命名空间