C# 클래스 Microsoft.R.Editor.Selection.RSelectionTracker

JScript selection tracker. Helps preserve selection and correct caret position during script autoformatting. Uses tokenizer to calculate where caret should be after autoatic formatting.
상속: Microsoft.Languages.Editor.Selection.SelectionTracker
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
EndTracking ( ) : void

Restores saved selection

RSelectionTracker ( ITextView textView, ITextBuffer textBuffer, ITextRange changingRange ) : System

SelectionTracker constructor

StartTracking ( bool automaticTracking ) : void

Saves current selection

비공개 메소드들

메소드 설명
PositionFromTokens ( ITextSnapshot snapshot, int itemIndex, int offset ) : int
TokenFromPosition ( ITextSnapshot snapshot, int position, int &itemIndex, int &offset ) : void

메소드 상세

EndTracking() 공개 메소드

Restores saved selection
public EndTracking ( ) : void
리턴 void

RSelectionTracker() 공개 메소드

SelectionTracker constructor
public RSelectionTracker ( ITextView textView, ITextBuffer textBuffer, ITextRange changingRange ) : System
textView ITextView Text view
textBuffer ITextBuffer Editor text buffer (may be different from one attached to text view)
changingRange ITextRange Range that is changing in the buffer
리턴 System

StartTracking() 공개 메소드

Saves current selection
public StartTracking ( bool automaticTracking ) : void
automaticTracking bool
리턴 void