Skip to main content

RichEditDocument.mainSubDocument Property

Returns the main sub-document.

Declaration

get mainSubDocument(): SubDocument

Property Value

Type Description
SubDocument

The main sub-document.

Remarks

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