Interval.length Property
In This Article
Gets the interval’s character length.
#Declaration
TypeScript
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