Interval.start Property

Gets the interval’s start position in the document.

Declaration

start: number

Property Value

Type Description
number

An integer value specifying the start position.

Remarks

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