docx

    Variable DocumentGridTypeConst

    DocumentGridType: {
        DEFAULT: "default";
        LINES: "lines";
        LINES_AND_CHARS: "linesAndChars";
        SNAP_TO_CHARS: "snapToChars";
    } = ...

    Specifies the type of the current document grid, which defines the grid behavior.

    The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to all characters on each row; or a grid which affects only the line pitch for the current section.

    Reference: https://c-rex.net/samples/ooxml/e1/Part4/OOXML_P4_DOCX_ST_DocGrid_topic_ID0ELYP2.html

    
      
        
        
        
        
      
    
    

    Type declaration

    • ReadonlyDEFAULT: "default"

      Specifies that no document grid shall be applied to the contents of the current section in the document.

    • ReadonlyLINES: "lines"

      Specifies that the parent section shall have additional line pitch added to each line within it (as specified on the element (§2.6.5)) in order to maintain the specified number of lines per page.

    • ReadonlyLINES_AND_CHARS: "linesAndChars"

      Specifies that the parent section shall have both the additional line pitch and character pitch added to each line and character within it (as specified on the element (§2.6.5)) in order to maintain a specific number of lines per page and characters per line.

      When this value is set, the input specified via the user interface may be allowed in exact number of line/character pitch units.

    • ReadonlySNAP_TO_CHARS: "snapToChars"

      Specifies that the parent section shall have both the additional line pitch and character pitch added to each line and character within it (as specified on the element (§2.6.5)) in order to maintain a specific number of lines per page and characters per line.

      When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values

    MMNEPVFCICPMFPCPTTAAATR