For a Text object named myText, to find the index position of the first character on the third line, use the following syntax:
var charInfo = myText.LineIndex(2)