WindowsFormsComponentEditor.GetComponentEditorPages 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與該編輯器相關的元件編輯器頁面。
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)];
給繼承者的注意事項
您必須覆寫此方法才能實作此方法的功能。