ITextSnapshot.GetLineNumberFromPosition(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of the line that contains the character at the specified position.
public:
int GetLineNumberFromPosition(int position);
public:
int GetLineNumberFromPosition(int position);
int GetLineNumberFromPosition(int position);
public int GetLineNumberFromPosition (int position);
abstract member GetLineNumberFromPosition : int -> int
Public Function GetLineNumberFromPosition (position As Integer) As Integer
Parameters
- position
- Int32
The position from which to get the line number.
Returns
The line number of the line in which position
lies.
Exceptions
position
is less than zero or greater than Length/>.