Skip to content

Doc.setSelections method

Doc › setSelections

Unofficial

Sets a new set of selections.

Signature:

setSelections(ranges: Cm5SelectionRange[], primary?: number, options?: Cm5SelectionOptions): void

Parameters:

ParameterTypeDescription
rangesCm5SelectionRange[]The selection ranges.
primary?numberThe index of the primary selection.
options?Cm5SelectionOptionsOptional selection options.

Returns: void