Back to Devexpress

RichEditDocument.activeSubDocument Property

aspnet-js-richeditdocument-f5fd3535.md

latest949 B
Original Source

RichEditDocument.activeSubDocument Property

Returns the active sub-document.

Declaration

ts
get activeSubDocument(): SubDocument

Property Value

TypeDescription
SubDocument

The active sub-document.

|

Remarks

javascript
// 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

How to: Common Use Cases

RichEditDocument Class

RichEditDocument Members