Skip to main content
A newer version of this page is available. .

Interval.length Property

Gets the interval’s character length.

Declaration

length: number

Property Value

Type Description
number

An integer value specifying the element length in characters.

Remarks

//Gets the selected text
var firstSelectedInterval = richEdit.selection.intervals[0];
var selectedText = richEdit.document.activeSubDocument.text.substr(firstSelectedInterval.start, firstSelectedInterval.length);
See Also