RichEditSelection.setHeaderSubDocumentAsActiveByPageIndex(pageIndex) Method

Creates a header sub-document (if it was not created before) and sets the header as the active sub-document. Moves the cursor to the header's start position.

Declaration

setHeaderSubDocumentAsActiveByPageIndex(
    pageIndex: number
): void

Parameters

Name Type Description
pageIndex number

An integer value specifying the active page's index.

Remarks

Usage Example:

richEdit.selection.setHeaderSubDocumentAsActiveByPageIndex(0); 
See Also