Occurs when the selection in the modeling window has changed.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Event SelectionChanged As EventHandler
'使用
Dim instance As ModelingWindowPane
Dim handler As EventHandler
AddHandler instance.SelectionChanged, handler
public event EventHandler SelectionChanged
public:
virtual event EventHandler^ SelectionChanged {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
JScript does not support events.
Implements
ISelectionService.SelectionChanged
Remarks
If a client needs to be notified when the selection in the modeling window changes, the client must register an event handler.
This method implements the IMonitorSelectionService interface.
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.