WindowsFormsComponentEditor.GetComponentEditorPages Metoda

Definicja

Pobiera strony edytora składników skojarzone z edytorem składników.

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

Zwraca

Type[]

Tablica stron edytora składników.

Przykłady

W poniższym przykładzie kodu pokazano przykładową implementację GetComponentEditorPages zastąpienia metody.

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

Uwagi dotyczące dziedziczenia

Należy zastąpić tę metodę, aby zaimplementować funkcje tej metody.

Dotyczy