ITextSelection.SelectionChanged Event
Occurs when Select or Clear are called, as well as when the selection is empty and the caret is moved. The sender of the event is this ITextSelection.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Déclaration
Event SelectionChanged As EventHandler
event EventHandler SelectionChanged
event EventHandler^ SelectionChanged {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
abstract SelectionChanged : IEvent<EventHandler,
EventArgs>
JScript does not support events.
Remarks
This event is not raised if the selection shrinks or grows because its associated span shrinks or grows.
The location of an empty selection is the location of the caret.
.NET Framework Security
- 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.