ITextViewLineCollection.GetTextElementSpan(SnapshotPoint) Método

Definição

Obtém a extensão cujo elemento de texto span contém a posição de buffer fornecida.

public:
 Microsoft::VisualStudio::Text::SnapshotSpan GetTextElementSpan(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public Microsoft.VisualStudio.Text.SnapshotSpan GetTextElementSpan (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetTextElementSpan : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.SnapshotSpan
Public Function GetTextElementSpan (bufferPosition As SnapshotPoint) As SnapshotSpan

Parâmetros

bufferPosition
SnapshotPoint

A posição do buffer.

Retornos

SnapshotSpan

O SnapshotSpan que corresponde ao índice de elemento de texto fornecido.

Exceções

bufferPosition não corresponde a uma posição nesta linha.

Aplica-se a