WindowsFormsComponentEditor.GetComponentEditorPages Metode

Definisi

Mendapatkan halaman editor komponen yang terkait dengan editor komponen.

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()

Mengembalikan

Type[]

Array halaman editor komponen.

Contoh

Contoh kode berikut menunjukkan contoh implementasi penimpaan GetComponentEditorPages metode.

// 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)];

Catatan Bagi Inheritor

Anda harus mengambil alih metode ini untuk mengimplementasikan fungsionalitas untuk metode ini.

Berlaku untuk