TypeDescriptor.CreateDesigner(IComponent, Type) 方法

定义

创建与指定组件关联的具有特定类型的设计器的实例。

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

参数

component
IComponent

指定要与设计器关联的组件的 IComponent

designerBaseType
Type

表示要创建的设计器的类型的 Type

返回

如果找到组件的设计器实例,则为 IDesigner;如果未找到设计器,则为 null

注解

如果此方法找不到有效的 DesignerAttribute,它将在类层次结构中搜索设计器。 如果在类层次结构中找不到设计器,则返回 null

适用于

另请参阅