Language

TypeDescriptor.CreateDesigner(IComponent, Type) メソッド

定義

指定したコンポーネントに関連付けられたデザイナーのインスタンスと、指定した種類のデザイナーのインスタンスを作成します。

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

パラメーター

component
IComponent

デザイナーに関連付けるコンポーネントを指定する IComponent 。

designerBaseType
Type

作成するデザイナーの種類を表す Type 。

返品

コンポーネントのデザイナーのインスタンスである IDesigner 。デザイナーが見つからない場合は null 。

属性

注釈

このメソッドが有効な DesignerAttributeを見つけられない場合は、デザイナーのクラス階層を検索します。 クラス階層内にデザイナーが見つからない場合は、 nullを返します。

適用対象

こちらもご覧ください