Returns the position of a line's first character. The first character's position is the number of characters from the beginning of the text to the beginning of the specified line. The first character's position of the first line is zero.
Specifies the index of the line whose character position is returned. The index of the first line is zero.
The method returns the requested character position. It is -1 if an error has occurred or if the specified line does not exist.