Skip to content

SelectionRange.extend method

SelectionRange › extend

Official

Extend this range to cover at least from to to.

Signature:

extend(from: number, to?: number): SelectionRange

Parameters:

ParameterTypeDescription
fromnumberThe start position.
to?numberThe end position.

Returns: SelectionRange — The extended selection range.