ITextSnapshot::GetLineNumberFromPosition Method (Int32)
Visual Studio 2015
Gets the number of the line that contains the character at the specified position.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- position
-
Type:
System::Int32
The position from which to get the line number.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | position is less than zero or greater than the length of the line. |
Show: