SelectionBounds Object
Description
Contains the start position and the length of a selection.
Syntax
{
start: <number>,
length: <number>
}Examples
The following example demonstrates SelectionBounds in a practical document-editing workflow. It contains the start position and the length of a selection.
function inspectSelectionBounds(selectionBounds) {
console.log("start:", selectionBounds.start);
console.log("length:", selectionBounds.length);
}