語言

ToolboxService.GetToolboxItem 方法

定義

回傳特定類型的工具箱物品。

多載

名稱 Description
GetToolboxItem(Type)

回傳特定類型的工具箱物品。

GetToolboxItem(Type, Boolean)

回傳特定類型的工具箱物品。

GetToolboxItem(Type)

回傳特定類型的工具箱物品。

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

參數

toolType
Type

取出工具箱物品的元件類型。

傳回

與該類型相關的工具箱項目,或 null 若該類型沒有對應的工具箱項目。

例外狀況

toolType 是 null。

適用於

GetToolboxItem(Type, Boolean)

回傳特定類型的工具箱物品。

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

參數

toolType
Type

取出工具箱物品的元件類型。

nonPublic
Boolean

true 搜尋該類型的非公開構造子; false 搜尋公共建造者。

傳回

與該類型相關的工具箱項目,或 null 若該類型沒有對應的工具箱項目。

例外狀況

toolType 是 null。

適用於