Skip to main content

Interval.length Property

Gets the interval’s character length.

Declaration

length: number

Property Value

Type Description
number

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