C# 클래스 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.
상속: ISelectionTracker
파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
MoveCaretTo ( SnapshotPoint position, int virtualSpaces ) : void

메소드 상세

EndTracking() 공개 메소드

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

MoveCaretTo() 보호된 메소드

protected MoveCaretTo ( SnapshotPoint position, int virtualSpaces ) : void
position SnapshotPoint
virtualSpaces int
리턴 void

MoveToAfterChanges() 공개 메소드

Moves caret to 'after changes' position
public MoveToAfterChanges ( int virtualSpaces ) : void
virtualSpaces int
리턴 void

MoveToBeforeChanges() 공개 메소드

Moves caret to 'before changes' position.
public MoveToBeforeChanges ( ) : void
리턴 void

SelectionTracker() 공개 메소드

public SelectionTracker ( ITextView textView ) : System
textView ITextView
리턴 System

StartTracking() 공개 메소드

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.
리턴 void