Partager via


IVsToolboxUser.ItemPicked(IDataObject) Method

Definition

Sends notification that an item in the Toolbox is selected through a click, or by pressing ENTER.

public:
 int ItemPicked(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO);
public:
 int ItemPicked(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO);
int ItemPicked(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDO);
public int ItemPicked (Microsoft.VisualStudio.OLE.Interop.IDataObject pDO);
abstract member ItemPicked : Microsoft.VisualStudio.OLE.Interop.IDataObject -> int
Public Function ItemPicked (pDO As IDataObject) As Integer

Parameters

pDO
IDataObject

[in] Data object that is selected.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolboxUser::ItemPicked(  
   [in]IDataObject* pDO  
);  

This method is called whenever a Toolbox item is added to window by selection, that is by a user double clicking on the item, or single clicking and pressing ENTER, which by-passed the drag-and-drop mechanism.

Applies to