lineStartBefore

Locate the beginning of the line enclosing position.

Return

The beginning of the line. This is either the beginning of the text or a position immediately following a linefeed (U+000A).

Parameters

position

The position from which to scan leftward in search of the beginning of the enclosing line.