Freigeben über


ITextViewLine.GetTextElementSpan(SnapshotPoint) Method

Definition

Gets the span whose text elementindex corresponds to the given buffer position.

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

Parameters

bufferPosition
SnapshotPoint

The buffer position.

Returns

The SnapshotSpan that corresponds to the given text element.

Applies to