Link Search Menu Expand Document

StyleEdit.LineFromPosition Method

Explanation Find the line number from the text position.
Call format var line = StyleEdit1.LineFromPosition( pos )
Return value Line number starting with integer 0
※ Always -1 during object initialization
Arguments integer pos Specify the text position.
Exception None
Example of use
    var line = StyleEdit1.LineFromPosition(100);
    
Related item PositionFromLine method