Skip to main content

RichEditDocument.mainSubDocument Property

Returns the main sub-document.


readonly mainSubDocument: SubDocument

Property Value

Type Description

The main sub-document.


The main sub-document includes the document body without headers, footers, and floating text boxes. The main sub-document always exists.

// Gets the whole text of the main sub-document 
var mainSubDocumentText = richEdit.document.mainSubDocument.text;

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

See Also