WindowsFormsComponentEditor.GetComponentEditorPages 方法

定義

取得與該編輯器相關的元件編輯器頁面。

protected:
 virtual cli::array <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)];

給繼承者的注意事項

您必須覆寫此方法才能實作此方法的功能。

適用於