TypeDescriptor.CreateDesigner(IComponent, Type) Metodo

Definizione

Crea un'istanza della finestra di progettazione associata al componente specificato e al tipo di finestra di progettazione specificato.

public:
 static System::ComponentModel::Design::IDesigner ^ CreateDesigner(System::ComponentModel::IComponent ^ component, Type ^ designerBaseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Design-time attributes are not preserved when trimming. Types referenced by attributes like EditorAttribute and DesignerAttribute may not be available after trimming.")]
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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered.")]
public static System.ComponentModel.Design.IDesigner? CreateDesigner(System.ComponentModel.IComponent component, Type designerBaseType);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Design-time attributes are not preserved when trimming. Types referenced by attributes like EditorAttribute and DesignerAttribute may not be available after trimming.")>]
static member CreateDesigner : System.ComponentModel.IComponent * Type -> System.ComponentModel.Design.IDesigner
static member CreateDesigner : System.ComponentModel.IComponent * Type -> System.ComponentModel.Design.IDesigner
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered.")>]
static member CreateDesigner : System.ComponentModel.IComponent * Type -> System.ComponentModel.Design.IDesigner
Public Shared Function CreateDesigner (component As IComponent, designerBaseType As Type) As IDesigner

Parametri

component
IComponent

Oggetto IComponent che specifica il componente da associare alla finestra di progettazione.

designerBaseType
Type

Oggetto Type che rappresenta il tipo di finestra di progettazione da creare.

Valori restituiti

Oggetto IDesigner che rappresenta un'istanza della finestra di progettazione per il componente o null se non è possibile trovare alcuna finestra di progettazione.

Attributi

Commenti

Se questo metodo non riesce a trovare un oggetto valido DesignerAttribute, cerca nella gerarchia di classi una finestra di progettazione. Se non riesce a trovare una finestra di progettazione nella gerarchia di classi, restituisce null.

Si applica a

Vedi anche