TypeDescriptor.CreateDesigner(IComponent, Type) Metoda

Definice

Vytvoří instanci návrháře přidruženého k zadané komponentě a zadaného typu návrháře.

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

Určuje IComponent komponentu, která se má přidružit k návrháři.

designerBaseType
Type

A Type , který představuje typ návrháře, který chcete vytvořit.

Návraty

Jedná IDesigner se o instanci návrháře pro komponentu, nebo null pokud nebyl nalezen žádný návrhář.

Poznámky

Pokud tato metoda nemůže najít platný DesignerAttribute, vyhledá v hierarchii tříd návrháře. Pokud nemůže najít návrháře v hierarchii tříd, vrátí null.

Platí pro

Viz také