IToolboxService::GetSelectedToolboxItem Method (IDesignerHost^)
.NET Framework (current version)
Gets the currently selected toolbox item if it is available to all designers, or if it supports the specified designer.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- host
-
Type:
System.ComponentModel.Design::IDesignerHost^
The IDesignerHost that the selected tool must be associated with for it to be returned.
Return Value
Type: System.Drawing.Design::ToolboxItem^The ToolboxItem that is currently selected, or null if no toolbox item is currently selected.
This method returns the currently selected ToolboxItem if it is not designer specific, and only returns a designer-specific currently selected ToolboxItem if the type of the designer host specified in the host parameter matches the type of designer that the currently selected ToolboxItem supports.
.NET Framework
Available since 1.1
Available since 1.1
Show: