DesignerWindowPane::OnToolboxItemPicked Method (IDataObject^)

 

Called when the user double clicks or presses enter on a toolbox item on the Visual Studio toolbox.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

protected:
virtual bool OnToolboxItemPicked(
	IDataObject^ toolboxItem
)

Return Value

Type: System::Boolean

true if the toolbox item was used by a designer.

Exception Condition
ArgumentNullException

toolboxItem is null.

The default implementation checks the current selection for a designer that implements IToolboxUser. If none can be found, the root component will be checked. If no IToolboxUser target can be found this will return false, indicating that the tool could not be used.

Return to top
Show: