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:

Parameter Type Description
from Position The start position.
to Position The end position.
separator? string | undefined Optional line separator.

Returns: stringThe text between the positions.