[previous] [up] [next]     [index]
Next: move-position Up: text Previous: line-paragraph

line-start-position

Returns the first position of the given line. Lines are numbered starting with 0.

Calling this method may force the recalculation of location information if a maximum width is set for the editor, even if the editor currently has delayed refreshing (see refresh-delayed?).

To calculate lines, if the following are true:

then this method ignores the editor's maximum width and any automatic line breaks it might imply. If the first two of the above conditions are true and the editor was formerley displayed, this method uses the line breaks from the most recent display of the editor. (Insertions or deletions since the display shift line breaks within the editor in the same way as items.)

See also paragraph-start-position, which operates on paragraphs (determined by explicit newline characters) instead of lines (determined by both explicit newline characters and automatic line-wrapping).



PLT