This documentation is archived and is not being maintained.

IVsUIHierWinClipboardHelper.Cut Method

Cuts a data object from a hierarchy to the clipboard.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int Cut (
	[InAttribute] IDataObject pDataObject
int Cut (
	/** @attribute InAttribute() */ IDataObject pDataObject
function Cut (
	pDataObject : IDataObject
) : int



[in] Pointer to a data object cut from the source hierarchy.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsUIHierWinClipboardHelper::Cut(
   [in] IDataObject *pDataObject

When an item is cut from the source hierarchy, change the appearance of the cut item by calling ExpandItem and specifying a value of either EXPF_CutHighlightItem or EXPF_AddCutHighlightItem, as appropriate.