Compartir a través de


IVsToolbox6.CopyToClipboard(IDataObject) Method

Definition

Copies the item from the toolbox onto the clipboard.

public:
 void CopyToClipboard(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pItem);
public:
 void CopyToClipboard(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pItem);
void CopyToClipboard(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pItem);
public void CopyToClipboard (Microsoft.VisualStudio.OLE.Interop.IDataObject pItem);
abstract member CopyToClipboard : Microsoft.VisualStudio.OLE.Interop.IDataObject -> unit
Public Sub CopyToClipboard (pItem As IDataObject)

Parameters

pItem
IDataObject

[in] The item to be copied from the toolbox onto the clipboard.

Remarks

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.

Applies to