TypeDescriptor.CreateDesigner(IComponent, Type) Metoda

Definicja

Tworzy wystąpienie projektanta skojarzonego z określonym składnikiem i określonego typu projektanta.

public:
 static System::ComponentModel::Design::IDesigner ^ CreateDesigner(System::ComponentModel::IComponent ^ component, Type ^ designerBaseType);
public static System.ComponentModel.Design.IDesigner CreateDesigner (System.ComponentModel.IComponent component, Type designerBaseType);
public static System.ComponentModel.Design.IDesigner? CreateDesigner (System.ComponentModel.IComponent component, Type designerBaseType);
static member CreateDesigner : System.ComponentModel.IComponent * Type -> System.ComponentModel.Design.IDesigner
Public Shared Function CreateDesigner (component As IComponent, designerBaseType As Type) As IDesigner

Parametry

component
IComponent

Element IComponent określający składnik do skojarzenia z projektantem.

designerBaseType
Type

Element Type reprezentujący typ projektanta do utworzenia.

Zwraca

Jest IDesigner to wystąpienie projektanta dla składnika lub null jeśli nie można odnaleźć projektanta.

Uwagi

Jeśli ta metoda nie może odnaleźć prawidłowego DesignerAttributeelementu , wyszukuje hierarchię klas dla projektanta. Jeśli nie można odnaleźć projektanta w hierarchii klas, zwraca wartość null.

Dotyczy

Zobacz też