Freigeben über


Diagram.OnToolboxItemSelected(ModelingToolboxItem) Method

Definition

Called on selection of a ToolboxItem. (A selection is a double-click, or pressing Enter). Base implementation simply returns false, which means the selection action is not handled.

public:
 virtual bool OnToolboxItemSelected(Microsoft::VisualStudio::Modeling::Design::ModelingToolboxItem ^ toolboxItem);
public virtual bool OnToolboxItemSelected (Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem toolboxItem);
abstract member OnToolboxItemSelected : Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem -> bool
override this.OnToolboxItemSelected : Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem -> bool
Public Overridable Function OnToolboxItemSelected (toolboxItem As ModelingToolboxItem) As Boolean

Parameters

toolboxItem
ModelingToolboxItem

Selected toolbox item. This will not be null; this method is not called when "Pointer" mode is selected.

Returns

True if the toolbox selection action is handled, false otherwise.

Applies to