C# 클래스 Microsoft.R.Editor.Document.REditorDocument

Main editor document for the R language
상속: IREditorDocument
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
BeginMassiveChange ( ) : void

Tells document that massive change to text buffer is about to commence. Document will then stop tracking text buffer changes, will suspend R parser anc classifier and remove all projections. AST is no longer valid after this call.

Close ( ) : void

Closes the document

Dispose ( ) : void
EndMassiveChange ( ) : bool

Tells document that massive change to text buffer is complete. Document will perform full parse, resume tracking of text buffer changes and classification (colorization).

FindInProjectedBuffers ( ITextBuffer viewBuffer ) : IREditorDocument

Given text view locates R document in underlying text buffer graph. In REPL window there may be multiple R text buffers but usually only last one (the one active at the > prompt) has attached R document. Other R buffers represent previously typed commands. They still have colorizer attached but no active R documents.

FindRBuffer ( ITextBuffer viewBuffer ) : ITextBuffer

Locates first R buffer in the projection buffer graph. Note that in REPL this may not be the active buffer. In REPL used FindInProjectedBuffers.

FromTextBuffer ( ITextBuffer textBuffer ) : IREditorDocument

Retrieves document instance from text buffer

MapCaretPositionFromView ( ITextView textView ) : SnapshotPoint?

Maps caret position in text view to position in the projected R editor text buffer. R text buffer can be projected into view in REPL window case or in case when R is embedded in another language file such as in SQL file.

MapPointFromView ( ITextView textView, SnapshotPoint point ) : SnapshotPoint?

Maps given point from view buffer to R editor buffer

REditorDocument ( ITextBuffer textBuffer, ICoreShell shell ) : System
TryFromTextBuffer ( ITextBuffer textBuffer ) : IREditorDocument

Retrieves document instance from text buffer

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
OnTextDocumentDisposed ( object sender, TextDocumentEventArgs e ) : void

메소드 상세

BeginMassiveChange() 공개 메소드

Tells document that massive change to text buffer is about to commence. Document will then stop tracking text buffer changes, will suspend R parser anc classifier and remove all projections. AST is no longer valid after this call.
public BeginMassiveChange ( ) : void
리턴 void

Close() 공개 메소드

Closes the document
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EndMassiveChange() 공개 메소드

Tells document that massive change to text buffer is complete. Document will perform full parse, resume tracking of text buffer changes and classification (colorization).
public EndMassiveChange ( ) : bool
리턴 bool

FindInProjectedBuffers() 공개 정적인 메소드

Given text view locates R document in underlying text buffer graph. In REPL window there may be multiple R text buffers but usually only last one (the one active at the > prompt) has attached R document. Other R buffers represent previously typed commands. They still have colorizer attached but no active R documents.
public static FindInProjectedBuffers ( ITextBuffer viewBuffer ) : IREditorDocument
viewBuffer ITextBuffer
리턴 IREditorDocument

FindRBuffer() 공개 정적인 메소드

Locates first R buffer in the projection buffer graph. Note that in REPL this may not be the active buffer. In REPL used FindInProjectedBuffers.
public static FindRBuffer ( ITextBuffer viewBuffer ) : ITextBuffer
viewBuffer ITextBuffer
리턴 ITextBuffer

FromTextBuffer() 공개 정적인 메소드

Retrieves document instance from text buffer
public static FromTextBuffer ( ITextBuffer textBuffer ) : IREditorDocument
textBuffer ITextBuffer
리턴 IREditorDocument

MapCaretPositionFromView() 공개 정적인 메소드

Maps caret position in text view to position in the projected R editor text buffer. R text buffer can be projected into view in REPL window case or in case when R is embedded in another language file such as in SQL file.
public static MapCaretPositionFromView ( ITextView textView ) : SnapshotPoint?
textView ITextView
리턴 SnapshotPoint?

MapPointFromView() 공개 정적인 메소드

Maps given point from view buffer to R editor buffer
public static MapPointFromView ( ITextView textView, SnapshotPoint point ) : SnapshotPoint?
textView ITextView
point SnapshotPoint
리턴 SnapshotPoint?

REditorDocument() 공개 메소드

public REditorDocument ( ITextBuffer textBuffer, ICoreShell shell ) : System
textBuffer ITextBuffer
shell ICoreShell
리턴 System

TryFromTextBuffer() 공개 정적인 메소드

Retrieves document instance from text buffer
public static TryFromTextBuffer ( ITextBuffer textBuffer ) : IREditorDocument
textBuffer ITextBuffer
리턴 IREditorDocument