Selection

constructor(anchor: Position, active: Position)(source)

Create a selection from two positions.

Parameters

anchor

A position.

active

constructor(anchorLine: Int, anchorCharacter: Int, activeLine: Int, activeCharacter: Int)(source)

Create a selection from four coordinates.

Parameters

anchorLine

A zero-based line value.

anchorCharacter

A zero-based character value.

activeLine

A zero-based line value.

activeCharacter

A zero-based character value.

Online Documentation