docx
    Preparing search index...

    Variable PageNumberConst

    PageNumber: {
        CURRENT: "CURRENT";
        CURRENT_SECTION: "SECTION";
        TOTAL_PAGES: "TOTAL_PAGES";
        TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
    } = ...

    Constants for page number field types.

    These values are used to insert dynamic page number fields into a document.

    Reference: http://officeopenxml.com/WPfields.php

    Type declaration

    • ReadonlyCURRENT: "CURRENT"

      Inserts the current page number

    • ReadonlyCURRENT_SECTION: "SECTION"

      Inserts the current section number

    • ReadonlyTOTAL_PAGES: "TOTAL_PAGES"

      Inserts the total number of pages in the document

    • ReadonlyTOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION"

      Inserts the total number of pages in the current section