docx

    Type Alias IDocGridAttributesProperties

    type IDocGridAttributesProperties = {
        charSpace?: number;
        linePitch: number;
        type?: typeof DocumentGridType[keyof typeof DocumentGridType];
    }
    Index

    Properties

    charSpace?: number

    Specifies the number of characters to be allowed on the document grid for each line in this section.

    This attribute's value shall be specified by multiplying the difference between the desired character pitch and the character pitch for that character in the font size of the Normal font by 4096.

    This value shall then be used to add the character pitch for the specified point size to each character in the section [: This results in text in the Normal style having a specific number of characters per line. ]

    
    

    The charSpace attribute specifies a value of 40960, which means that the delta between the character pitch of each character in the grid and the Normal font is 10 points, resulting in a character pitch of 11+10 = 21 points for all characters in this section. ]

    Individual runs of text can override the line pitch information specified for the document grid by specifying that the run text shall not snap to the document grid via the element (§2.3.2.32).

    The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16).

    linePitch: number

    Specifies the number of lines to be allowed on the document grid for the current page assuming all lines have equal line pitch applied to them. This line pitch shall not be added to any line which appears within a table cell unless the element (§2.15.3.1) is present in the document's compatibility settings.

    This attribute is specified in twentieths of a point, and defines the pitch for each line of text on this page such that the desired number of single spaced lines of text fits on the current page.

    
    

    The linePitch attribute specifies that 34.2 points is to the amount of pitch allowed for each line on this page in order to maintain the specific document grid. ]

    Individual paragraphs can override the line pitch information specified for the document grid by either:

    Specifying an exact line spacing value using the lineRule attribute of value exact on the element (§2.3.1.33).

    Specifying that the paragraph text shall not snap to the document grid via the element (§2.3.1.32).

    The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16).

    type?: typeof DocumentGridType[keyof typeof DocumentGridType]

    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 each character on each row; or a grid which affects only the line pitch for the current section.

    MMNEPVFCICPMFPCPTTAAATR