Skip to content

Cm5Editor.findPosV method

Cm5Editor › findPosV

Unofficial

Finds the target position for vertical cursor motion.

Signature:

findPosV(start: Position, amount: number, unit: string): Cm5FindPosResult

Parameters:

Parameter Type Description
start Position The starting position.
amount number The number of units to move.
unit string The unit ("line" or "page").

Returns: Cm5FindPosResultThe target position, with hitSide set if the edge was reached.