Share via


IDesignerHost.CreateComponent Yöntem

Tanım

Belirtilen türde bir bileşen oluşturur ve bunu tasarım belgesine ekler.

Aşırı Yüklemeler

CreateComponent(Type)

Belirtilen türde bir bileşen oluşturur ve bunu tasarım belgesine ekler.

CreateComponent(Type, String)

Belirtilen tür ve addan bir bileşen oluşturur ve bunu tasarım belgesine ekler.

CreateComponent(Type)

Belirtilen türde bir bileşen oluşturur ve bunu tasarım belgesine ekler.

public:
 System::ComponentModel::IComponent ^ CreateComponent(Type ^ componentClass);
public System.ComponentModel.IComponent CreateComponent (Type componentClass);
abstract member CreateComponent : Type -> System.ComponentModel.IComponent
Public Function CreateComponent (componentClass As Type) As IComponent

Parametreler

componentClass
Type

Oluşturulacak bileşenin türü.

Döndürülenler

Yeni oluşturulan bileşen.

Açıklamalar

Türü uygulayan IComponentbir nesneye çözümlenemiyorsa bir özel durum oluşturulur.

Bu yöntem bileşen için bir ad belirtmez. yöntemi bileşeni oluşturur ve tasarımcı kapsayıcısına ekler.

Ayrıca bkz.

Şunlara uygulanır

CreateComponent(Type, String)

Belirtilen tür ve addan bir bileşen oluşturur ve bunu tasarım belgesine ekler.

public:
 System::ComponentModel::IComponent ^ CreateComponent(Type ^ componentClass, System::String ^ name);
public System.ComponentModel.IComponent CreateComponent (Type componentClass, string name);
abstract member CreateComponent : Type * string -> System.ComponentModel.IComponent
Public Function CreateComponent (componentClass As Type, name As String) As IComponent

Parametreler

componentClass
Type

Oluşturulacak bileşenin türü.

name
String

Bileşenin adı.

Döndürülenler

Yeni oluşturulan bileşen.

Açıklamalar

Türü uygulayan IComponentbir nesneye çözümlenemiyorsa bir özel durum oluşturulur.

Bu yöntem bileşeni oluşturur ve tasarımcı kapsayıcısına ekler.

Ayrıca bkz.

Şunlara uygulanır