A newer version of this page is available. Switch to the current version.

RichEditDocument.mainSubDocument Property

Provides access to the document's main sub-document.


readonly mainSubDocument: SubDocument

Property Value

Type Description

A SubDocument object storing the main sub-document.


The document's main sub-document represents the document's body separately from document's headers, footers, and floating text boxes. The main sub-document always exists and is active by default.

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