Partager via


ModelingDocView.ItemPicked Method

Notifies clients that a user clicked an item in the Toolbox or pressed ENTER to select the item.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Function ItemPicked ( _
    data As IDataObject _
) As Integer
public int ItemPicked(
    IDataObject data
)
public:
virtual int ItemPicked(
    IDataObject^ data
) sealed
abstract ItemPicked : 
        data:IDataObject -> int  
override ItemPicked : 
        data:IDataObject -> int
public final function ItemPicked(
    data : IDataObject
) : int

Parameters

Return Value

Type: System.Int32
S_OK if the user clicked the item or pressed ENTER to select the item; otherwise, E_FAIL.

Implements

IVsToolboxUser.ItemPicked(IDataObject)

Remarks

Toolbox items include shapes and connectors.

This method is an implementation of the ItemPicked interface.

.NET Framework Security

See Also

Reference

ModelingDocView Class

Microsoft.VisualStudio.Modeling.Shell Namespace