ITextViewLineCollection::GetTextElementSpan Method (SnapshotPoint)
Visual Studio 2015
Gets the span whose text element span contains the given buffer position.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- bufferPosition
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The buffer position.
Return Value
Type: Microsoft.VisualStudio.Text::SnapshotSpanThe SnapshotSpan that corresponds to the given text element index.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | bufferPosition does not correspond to a position on this line. |
Show: