When a user clicks an item in the Toolbox, calls ToolboxItemSelected.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Overridable Sub OnToolboxItemSelected ( _
data As IDataObject _
)
'使用
Dim data As IDataObject
Me.OnToolboxItemSelected(data)
protected virtual void OnToolboxItemSelected(
IDataObject data
)
protected:
virtual void OnToolboxItemSelected(
IDataObject^ data
)
protected function OnToolboxItemSelected(
data : IDataObject
)
Parameters
data
Type: System.Windows.Forms.IDataObjectThe item in the Toolbox.
Permissions
- 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.