ITextViewLineCollection.GetTextElementSpan(SnapshotPoint) Methode

Definition

Ruft die Spanne ab, deren Textelementspanne die angegebene Pufferposition enthält.

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

Parameter

bufferPosition
SnapshotPoint

Die Pufferposition.

Gibt zurück

SnapshotSpan

Die SnapshotSpan, die dem angegebenen Textelementindex entspricht.

Ausnahmen

bufferPosition entspricht nicht einer Position in dieser Zeile.

Gilt für