PyCRichEditCtrl.LineFromChar
int = LineFromChar(charNo)
Returns the line number of the specified character.
Parameters
MFC References
Return Value
The zero-based line number of the line containing the character index specified by charNo. If charNo is -1, the number of the line that contains the first character of the selection is returned. If there is no selection, the current line number is returned.