Skip to content

Doc.getRange method

Doc › getRange

Unofficial

Gets the text between the given points.

Signature:

getRange(from: Position, to: Position, separator?: string | undefined): string

Parameters:

ParameterTypeDescription
fromPositionThe start position.
toPositionThe end position.
separator?string | undefinedOptional line separator.

Returns: stringThe text between the positions.