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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
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
- data
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
The item that the user clicked in the Toolbox.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.