Diagram.OnToolboxItemSelected(ModelingToolboxItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.