RichEditSelection.getIntervalMaxPosition Method
Gets the length of the active sub-document.
Declaration
getIntervalMaxPosition(): number
Returns
Type | Description |
---|---|
number | The length of the active sub-document. |
Remarks
// Inserts text at the end of the active sub-document
var interval = [{start:richEdit.selection.getIntervalMaxPosition(), length: 0}]
richEdit.selection.intervals = interval;
richEdit.commands.insertText.execute('The end.');
Refer to the following section for more information: Client Selection.
See Also