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) };
}

給繼承者的注意事項

您必須覆寫這個方法,才能實作這個方法的功能。

適用於