DS Server

Javascript: SelectionBounds.length Property

Property|Introduced in 24.0

Description

The length of the selection in characters.

Syntax

<number> SelectionBounds.length

Examples

The following example demonstrates SelectionBounds.length in a practical document-editing workflow. The length of the selection in characters.

function inspectLength(selectionBounds) {
    const length = selectionBounds.length;
    console.log("length:", length);
}