For a Text object named myText containing four lines each of which contains two characters per line, use the following syntax to return the line number for the fifth character in myText
var lineInfo = myText.LineFromChar(5)
Note: In this example, the Return Value contained in the variable lineInfo is 1, which is the second line of the Text object myText.