C# Class Microsoft.Languages.Editor.Selection.SelectionTracker

Selection tracker helps preserve caret position and relative screen scroll position when text buffer change is applied. This is default implementation, languages can choose to implement their own.
Inheritance: ISelectionTracker
Afficher le fichier Open project: Microsoft/RTVS

Méthodes publiques

Méthode Description
EndTracking ( ) : void

Stops tracking and saves current caret position as final position as final or 'after changes' position.

MoveToAfterChanges ( int virtualSpaces ) : void

Moves caret to 'after changes' position

MoveToBeforeChanges ( ) : void

Moves caret to 'before changes' position.

SelectionTracker ( ITextView textView ) : System
StartTracking ( bool automaticTracking ) : void

Saves current caret position and optionally starts tracking of the caret position across text buffer changes using ITrackingSpan

Méthodes protégées

Méthode Description
MoveCaretTo ( SnapshotPoint position, int virtualSpaces ) : void

Method Details

EndTracking() public méthode

Stops tracking and saves current caret position as final position as final or 'after changes' position.
public EndTracking ( ) : void
Résultat void

MoveCaretTo() protected méthode

protected MoveCaretTo ( SnapshotPoint position, int virtualSpaces ) : void
position SnapshotPoint
virtualSpaces int
Résultat void

MoveToAfterChanges() public méthode

Moves caret to 'after changes' position
public MoveToAfterChanges ( int virtualSpaces ) : void
virtualSpaces int
Résultat void

MoveToBeforeChanges() public méthode

Moves caret to 'before changes' position.
public MoveToBeforeChanges ( ) : void
Résultat void

SelectionTracker() public méthode

public SelectionTracker ( ITextView textView ) : System
textView ITextView
Résultat System

StartTracking() public méthode

Saves current caret position and optionally starts tracking of the caret position across text buffer changes using ITrackingSpan
public StartTracking ( bool automaticTracking ) : void
automaticTracking bool True if selection tracker should track text buffer changes using tracking span. /// False if End should simply use current caret position as final position rather than attempt to track it /// across changes.
Résultat void