Doc.setSelection method
Doc › setSelection
Unofficial
Sets the selection range.Signature:
setSelection(anchor: Position, head?: Position | undefined, options?: Cm5SelectionOptions | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| anchor | Position | The anchor position. |
| head? | Position | undefined | The optional head position. |
| options? | Cm5SelectionOptions | undefined | Optional selection options. |
Returns: void