C# Класс Microsoft.Languages.Editor.Extensions.TextBufferExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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?