IVsToolboxUser.ItemPicked(IDataObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.