selection-object (noun)A way to refer to a range of text.
description
You won’t work explicitly with any objects whose class is selection-object; you can fetch the selection as text (the default) or as a point (a starting offset and a length). But the properties of the selection-object do apply to the selection, so you can get and set the selection’s contents and character range, and these are equivalent to getting and setting the selection as text and as a point, respectively.
properties
| | | | character range | get/set | point | The position of the selection, expressed as a list: {character offset, length}. Set this to reposition the selection. | contents | get/set | text | The selected text. Set this to replace the text with different text. |
|
where used
The
selection-object class is used in the following ways:
last error range property of the
document class/record
selection property of the
document class/record