ITextViewLine.GetTextElementSpan(SnapshotPoint) Method

Definition

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

C++
public:
 Microsoft::VisualStudio::Text::SnapshotSpan GetTextElementSpan(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);

Parameters

bufferPosition
SnapshotPoint

The buffer position.

Returns

The SnapshotSpan that corresponds to the given text element.

Applies to

Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022