共用方式為


Diagram.OnToolboxSelectionChanged(ModelingToolboxItem) Method

Definition

Called when the selection on toolbox changed (through a single-click, or pressing up/down arrow keys). Base implementation does nothing.

public:
 virtual void OnToolboxSelectionChanged(Microsoft::VisualStudio::Modeling::Design::ModelingToolboxItem ^ toolboxItem);
public virtual void OnToolboxSelectionChanged (Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem toolboxItem);
abstract member OnToolboxSelectionChanged : Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem -> unit
override this.OnToolboxSelectionChanged : Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem -> unit
Public Overridable Sub OnToolboxSelectionChanged (toolboxItem As ModelingToolboxItem)

Parameters

toolboxItem
ModelingToolboxItem

New toolbox item with selection. This can be null, if "Pointer" mode is selected.

Applies to