Freigeben über


IVsToolboxClipboardCycler.GetAndSelectNextDataObject Method

Gets the next data object for the target Toolbox user's clipboard ring.

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

Syntax

'Declaration
Function GetAndSelectNextDataObject ( _
    pTarget As IVsToolboxUser, _
    <OutAttribute> ByRef ppDO As IDataObject _
) As Integer
'Usage
Dim instance As IVsToolboxClipboardCycler
Dim pTarget As IVsToolboxUser
Dim ppDO As IDataObject
Dim returnValue As Integer

returnValue = instance.GetAndSelectNextDataObject(pTarget, _
    ppDO)
int GetAndSelectNextDataObject(
    IVsToolboxUser pTarget,
    out IDataObject ppDO
)
int GetAndSelectNextDataObject(
    [InAttribute] IVsToolboxUser^ pTarget, 
    [OutAttribute] IDataObject^% ppDO
)
abstract GetAndSelectNextDataObject : 
        pTarget:IVsToolboxUser * 
        ppDO:IDataObject byref -> int 
function GetAndSelectNextDataObject(
    pTarget : IVsToolboxUser, 
    ppDO : IDataObject
) : int

Parameters

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolboxClipboardCycler::GetAndSelectNextDataObject(
   [in] IVsToolboxUser *pTarget,
   [out] IDataObject **ppDO
);

This method requires you to specify an IVsToolboxUser and does not assume that the IVsToolboxUser for the active document is the target toolbox user. Because IVsToolboxUser is reserved for documents, you need to implement IVsToolboxUser if you want to provide clipboard cycling for a tool window. Once you do this, you can implement clipboard cycling by passing in your tool window's IVsToolboxUser in a call to IVsToolboxClipboardCycler::GetAndSelectNextDataObject.

.NET Framework Security

See Also

Reference

IVsToolboxClipboardCycler Interface

IVsToolboxClipboardCycler Members

Microsoft.VisualStudio.Shell.Interop Namespace