ITextViewLineCollection::GetTextViewLineContainingBufferPosition Method (SnapshotPoint)
Visual Studio 2015
Gets the ITextViewLine that contains the specified text buffer position.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- bufferPosition
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The text buffer position used to search for a text line.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting::ITextViewLine^An ITextViewLine that contains the position, or null if none exists.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | bufferPosition is not a valid buffer position. |
Show: