Bagikan melalui


ToolboxService.GetToolboxItem Metode

Definisi

Mengembalikan item kotak alat untuk jenis tertentu.

Overload

GetToolboxItem(Type)

Mengembalikan item kotak alat untuk jenis tertentu.

GetToolboxItem(Type, Boolean)

Mengembalikan item kotak alat untuk jenis tertentu.

GetToolboxItem(Type)

Mengembalikan item kotak alat untuk jenis tertentu.

public:
 static System::Drawing::Design::ToolboxItem ^ GetToolboxItem(Type ^ toolType);
public static System.Drawing.Design.ToolboxItem GetToolboxItem (Type toolType);
static member GetToolboxItem : Type -> System.Drawing.Design.ToolboxItem
Public Shared Function GetToolboxItem (toolType As Type) As ToolboxItem

Parameter

toolType
Type

Jenis komponen untuk mengambil item kotak alat.

Mengembalikan

Item kotak alat yang terkait dengan jenis yang diberikan, atau null jika jenis tidak memiliki item kotak alat yang sesuai.

Pengecualian

toolTypeadalah null.

Berlaku untuk

GetToolboxItem(Type, Boolean)

Mengembalikan item kotak alat untuk jenis tertentu.

public:
 static System::Drawing::Design::ToolboxItem ^ GetToolboxItem(Type ^ toolType, bool nonPublic);
public static System.Drawing.Design.ToolboxItem GetToolboxItem (Type toolType, bool nonPublic);
static member GetToolboxItem : Type * bool -> System.Drawing.Design.ToolboxItem
Public Shared Function GetToolboxItem (toolType As Type, nonPublic As Boolean) As ToolboxItem

Parameter

toolType
Type

Jenis komponen untuk mengambil item kotak alat.

nonPublic
Boolean

true untuk mencari konstruktor non-publik pada jenis ; false untuk mencari konstruktor publik.

Mengembalikan

Item kotak alat yang terkait dengan jenis yang diberikan, atau null jika jenis tidak memiliki item kotak alat yang sesuai.

Pengecualian

toolTypeadalah null.

Berlaku untuk