Skip to main content

RichEditDocument.activeSubDocument Property

Returns the active sub-document.

Declaration

get activeSubDocument(): SubDocument

Property Value

Type Description
SubDocument

The active sub-document.

Remarks

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

Refer to the following section for more information: Document Elements.

See Also