docx
    Preparing search index...

    Type Alias IRunStylePropertiesOptions

    Run style properties options.

    These properties define the formatting that can be applied to a run of text, including font, size, bold, italic, underline, color, and other character formatting.

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

    type IRunStylePropertiesOptions = {
        allCaps?: boolean;
        bold?: boolean;
        boldComplexScript?: boolean;
        border?: IBorderOptions;
        characterSpacing?: number;
        color?: string | ThemeColor;
        doubleStrike?: boolean;
        effect?: typeof TextEffect[keyof typeof TextEffect];
        emboss?: boolean;
        emphasisMark?: {
            type?: typeof EmphasisMarkType[keyof typeof EmphasisMarkType];
        };
        font?: | string
        | IFontOptions
        | IFontAttributesProperties
        | IThemeFontReference;
        highlight?: typeof HighlightColor[keyof typeof HighlightColor];
        highlightComplexScript?: boolean
        | string;
        imprint?: boolean;
        italics?: boolean;
        italicsComplexScript?: boolean;
        kern?: number | PositiveUniversalMeasure;
        language?: ILanguageOptions;
        math?: boolean;
        noProof?: boolean;
        position?: UniversalMeasure;
        revision?: IRunPropertiesChangeOptions;
        rightToLeft?: boolean;
        scale?: number;
        shading?: IShadingAttributesProperties;
        size?: number | PositiveUniversalMeasure;
        sizeComplexScript?: boolean | number | PositiveUniversalMeasure;
        smallCaps?: boolean;
        snapToGrid?: boolean;
        specVanish?: boolean;
        strike?: boolean;
        subScript?: boolean;
        superScript?: boolean;
        underline?: {
            color?: string | ThemeColor;
            type?: typeof UnderlineType[keyof typeof UnderlineType];
        };
        vanish?: boolean;
    }
    Index
    allCaps?: boolean
    bold?: boolean
    boldComplexScript?: boolean
    characterSpacing?: number
    color?: string | ThemeColor

    The text's color: a hex color such as "FF0000", "auto", or a color of the document's theme such as { theme: "accent1" }

    doubleStrike?: boolean
    effect?: typeof TextEffect[keyof typeof TextEffect]
    emboss?: boolean
    emphasisMark?: { type?: typeof EmphasisMarkType[keyof typeof EmphasisMarkType] }
    font?: string | IFontOptions | IFontAttributesProperties | IThemeFontReference

    The font: a font name, a font for each character set, or one of the fonts of the document's theme, such as { theme: "body" }

    highlight?: typeof HighlightColor[keyof typeof HighlightColor]
    highlightComplexScript?: boolean | string

    Has no effect. WordprocessingML has no highlight of its own for complex script text: highlight highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.

    imprint?: boolean
    italics?: boolean
    italicsComplexScript?: boolean
    kern?: number | PositiveUniversalMeasure
    language?: ILanguageOptions
    math?: boolean
    noProof?: boolean
    position?: UniversalMeasure
    rightToLeft?: boolean
    scale?: number
    size?: number | PositiveUniversalMeasure
    sizeComplexScript?: boolean | number | PositiveUniversalMeasure
    smallCaps?: boolean
    snapToGrid?: boolean
    specVanish?: boolean
    strike?: boolean
    subScript?: boolean
    superScript?: boolean
    underline?: {
        color?: string | ThemeColor;
        type?: typeof UnderlineType[keyof typeof UnderlineType];
    }
    vanish?: boolean