ITextCaret.PositionChanged Event
Occurs when the position of the caret has been explicitly changed.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaração
Event PositionChanged As EventHandler(Of CaretPositionChangedEventArgs)
event EventHandler<CaretPositionChangedEventArgs> PositionChanged
event EventHandler<CaretPositionChangedEventArgs^>^ PositionChanged {
void add (EventHandler<CaretPositionChangedEventArgs^>^ value);
void remove (EventHandler<CaretPositionChangedEventArgs^>^ value);
}
abstract PositionChanged : IEvent<EventHandler<CaretPositionChangedEventArgs>,
CaretPositionChangedEventArgs>
JScript does not support events.
Remarks
The event is not raised if the caret position was changed as a consequence of tracking normal text edits. The normal behavior of the caret is to move after the typed character.
.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.