Freigeben über


IVsUIHierWinClipboardHelper.Cut Method

Cuts a data object from a hierarchy to the clipboard.

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

Syntax

'Declaration
Function Cut ( _
    pDataObject As IDataObject _
) As Integer
int Cut(
    IDataObject pDataObject
)
int Cut(
    [InAttribute] IDataObject^ pDataObject
)
abstract Cut : 
        pDataObject:IDataObject -> int
function Cut(
    pDataObject : IDataObject
) : int

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

IVsUIHierWinClipboardHelper Interface

Microsoft.VisualStudio.Shell.Interop Namespace