Share via


TypeDescriptor.CreateDesigner(IComponent, Type) Yöntem

Tanım

Belirtilen bileşenle ve belirtilen tasarımcı türüyle ilişkili tasarımcının bir örneğini oluşturur.

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

Parametreler

component
IComponent

IComponent Tasarımcıyla ilişkilendirilecek bileşeni belirten bir.

designerBaseType
Type

Type Oluşturulacak tasarımcı türünü temsil eden bir.

Döndürülenler

IDesigner Bileşenin tasarımcı örneği olan veya null hiçbir tasarımcı bulunamazsa.

Açıklamalar

Bu yöntem geçerli DesignerAttributebir bulamazsa, bir tasarımcı için sınıf hiyerarşisini arar. Sınıf hiyerarşisinde bir tasarımcı bulamazsa döndürür null.

Şunlara uygulanır

Ayrıca bkz.