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:

ParameterTypeDescription
startPositionThe starting position.
amountnumberThe number of units to move.
unitstringThe unit ("line" or "page").

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