IToolboxUser.ToolPicked(ToolboxItem) 方法

定義

選取指定的工具。Selects the specified tool.

public:
 void ToolPicked(System::Drawing::Design::ToolboxItem ^ tool);
public void ToolPicked (System.Drawing.Design.ToolboxItem tool);
abstract member ToolPicked : System.Drawing.Design.ToolboxItem -> unit
Public Sub ToolPicked (tool As ToolboxItem)

參數

tool
ToolboxItem

要選取的 ToolboxItemThe ToolboxItem to select.

備註

ToolPicked當使用者按兩下 [工具箱] 專案時, 會呼叫。ToolPicked is called when the user double-clicks on a toolbox item. 檔設計工具應該會為指定的工具建立元件。The document designer should create a component for the specified tool. Visual Studio 的整合式開發環境只會在ToolPicked [工具箱] 中啟用的工具上呼叫。The Visual Studio integrated development environment will only call ToolPicked on tools that are enabled in the toolbox.

適用於

另請參閱