IVsToolbox6::CopyToClipboard Method (IDataObject^)
Visual Studio 2015
Copies the item from the toolbox onto the clipboard.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Parameters
- pItem
-
Type:
Microsoft.VisualStudio.OLE.Interop::IDataObject^
[in] The item to be copied from the toolbox onto the clipboard.
The way this method copies the item is different from putting pItem directly on the clipboard because the toolbox does some additional processing of the data object before sending it to the clipboard. The result of this method is the same as right-clicking the item in the toolbox and selecting Copy.
Show: