다음을 통해 공유


IVsToolboxUser.ItemPicked Method

Sends notification that an item in the Toolbox is selected through a click, or by pressing ENTER.

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

Syntax

‘선언
Function ItemPicked ( _
    pDO As IDataObject _
) As Integer
‘사용 방법
Dim instance As IVsToolboxUser
Dim pDO As IDataObject
Dim returnValue As Integer

returnValue = instance.ItemPicked(pDO)
int ItemPicked(
    IDataObject pDO
)
int ItemPicked(
    [InAttribute] IDataObject^ pDO
)
abstract ItemPicked : 
        pDO:IDataObject -> int 
function ItemPicked(
    pDO : 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 IVsToolboxUser::ItemPicked(
   [in]IDataObject* pDO
);

This method is called whenever a Toolbox item is added to window by selection, that is by a user double clicking on the item, or single clicking and pressing ENTER, which by-passed the drag-and-drop mechanism.

.NET Framework Security

See Also

Reference

IVsToolboxUser Interface

IVsToolboxUser Members

Microsoft.VisualStudio.Shell.Interop Namespace