C# 클래스 Microsoft.Languages.Editor.Extensions.TextBufferExtensions

파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
AddBufferDisposedAction ( this textBuffer, ICoreShell shell, ICoreShell>.Action callback ) : void
CurrentTextView ( this viewBuffer ) : ITextView
GetBufferGraph ( this viewBuffer ) : IBufferGraph

Given view buffer (top-level buffer in the projection tree) returns buffer graph.

GetChangedExtent ( this oldVersion, ITextVersion newVersion, Span &oldSpan, Span &newSpan ) : bool
GetContributingBuffers ( this textBuffer ) : IEnumerable
GetFileName ( this textBuffer ) : string
GetLineColumnFromPosition ( this textBuffer, int position, int &line, int &column ) : bool

Converts stream buffer position to line and column.

GetPositionFromLineColumn ( this textBuffer, int line, int column ) : int?

Converts line and column positions to a stream buffer position.

GetTextDocument ( this textBuffer ) : ITextDocument
IsContributingBuffer ( this buffer, ITextBuffer contributingBuffer ) : bool
IsSignatureHelpBuffer ( this textBuffer ) : bool
MapDown ( this viewBuffer, SnapshotPoint viewPoint, string contentTypeName ) : SnapshotPoint?

Given top-level text buffer (i.e. view buffer) maps location down the buffer graph to the project buffer of the specified content type, if any.

MapUp ( this viewBuffer, SnapshotPoint sourcePoint, string contentTypeName ) : SnapshotPoint?

Given top-level text buffer (i.e. view buffer) and location in the projected buffer maps location up the buffer graph from the buffer of the specified content type to the view buffer.

MapUp ( this viewBuffer, Span sourceSpan, string contentTypeName ) : SnapshotSpan?

Given top-level text buffer (i.e. view buffer) and location in the projected buffer maps location up the buffer graph from the buffer of the specified content type to the view buffer.

메소드 상세

AddBufferDisposedAction() 공개 정적인 메소드

public static AddBufferDisposedAction ( this textBuffer, ICoreShell shell, ICoreShell>.Action callback ) : void
textBuffer this
shell ICoreShell
callback ICoreShell>.Action
리턴 void

CurrentTextView() 공개 정적인 메소드

public static CurrentTextView ( this viewBuffer ) : ITextView
viewBuffer this
리턴 ITextView

GetBufferGraph() 공개 정적인 메소드

Given view buffer (top-level buffer in the projection tree) returns buffer graph.
public static GetBufferGraph ( this viewBuffer ) : IBufferGraph
viewBuffer this
리턴 IBufferGraph

GetChangedExtent() 공개 정적인 메소드

public static GetChangedExtent ( this oldVersion, ITextVersion newVersion, Span &oldSpan, Span &newSpan ) : bool
oldVersion this
newVersion ITextVersion
oldSpan Span
newSpan Span
리턴 bool

GetContributingBuffers() 공개 정적인 메소드

public static GetContributingBuffers ( this textBuffer ) : IEnumerable
textBuffer this
리턴 IEnumerable

GetFileName() 공개 정적인 메소드

public static GetFileName ( this textBuffer ) : string
textBuffer this
리턴 string

GetLineColumnFromPosition() 공개 정적인 메소드

Converts stream buffer position to line and column.
public static GetLineColumnFromPosition ( this textBuffer, int position, int &line, int &column ) : bool
textBuffer this
position int
line int
column int
리턴 bool

GetPositionFromLineColumn() 공개 정적인 메소드

Converts line and column positions to a stream buffer position.
public static GetPositionFromLineColumn ( this textBuffer, int line, int column ) : int?
textBuffer this
line int
column int
리턴 int?

GetTextDocument() 공개 정적인 메소드

public static GetTextDocument ( this textBuffer ) : ITextDocument
textBuffer this
리턴 ITextDocument

IsContributingBuffer() 공개 정적인 메소드

public static IsContributingBuffer ( this buffer, ITextBuffer contributingBuffer ) : bool
buffer this
contributingBuffer ITextBuffer
리턴 bool

IsSignatureHelpBuffer() 공개 정적인 메소드

public static IsSignatureHelpBuffer ( this textBuffer ) : bool
textBuffer this
리턴 bool

MapDown() 공개 정적인 메소드

Given top-level text buffer (i.e. view buffer) maps location down the buffer graph to the project buffer of the specified content type, if any.
public static MapDown ( this viewBuffer, SnapshotPoint viewPoint, string contentTypeName ) : SnapshotPoint?
viewBuffer this
viewPoint SnapshotPoint
contentTypeName string
리턴 SnapshotPoint?

MapUp() 공개 정적인 메소드

Given top-level text buffer (i.e. view buffer) and location in the projected buffer maps location up the buffer graph from the buffer of the specified content type to the view buffer.
public static MapUp ( this viewBuffer, SnapshotPoint sourcePoint, string contentTypeName ) : SnapshotPoint?
viewBuffer this
sourcePoint SnapshotPoint
contentTypeName string
리턴 SnapshotPoint?

MapUp() 공개 정적인 메소드

Given top-level text buffer (i.e. view buffer) and location in the projected buffer maps location up the buffer graph from the buffer of the specified content type to the view buffer.
public static MapUp ( this viewBuffer, Span sourceSpan, string contentTypeName ) : SnapshotSpan?
viewBuffer this
sourceSpan Span
contentTypeName string
리턴 SnapshotSpan?