Doc.addSelection method
Doc › addSelection
Unofficial
Adds a new selection to the existing set of selections.Signature:
addSelection(anchor: Position, head?: Position | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| anchor | Position | The anchor position. |
| head? | Position | undefined | The optional head position. |
Returns: void