Skip to main content

RichEditDocument.getSubDocumentById(subDocumentId) Method

Returns the sub-document with the specified identifier.

Declaration

getSubDocumentById(
    subDocumentId: number
): SubDocument

Parameters

Name Type Description
subDocumentId number

A value that identifies the sub-document.

Returns

Type Description
SubDocument

The sub-document.

Remarks

// Gets sub-document that has the id 0
var subDocument = richEdit.document.getSubDocumentById(0);

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

See Also