IToolboxService::GetSelectedToolboxItem Method (IDesignerHost^)

 

Gets the currently selected toolbox item if it is available to all designers, or if it supports the specified designer.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

ToolboxItem^ GetSelectedToolboxItem(
	IDesignerHost^ host
)

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
Return to top
Show: