modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface RichTextRun

    A single text segment with optional formatting within a rich text cell.

    interface RichTextRun {
        bold?: boolean;
        charset?: number;
        color?: string;
        colorSpec?: ColorData;
        family?: number;
        fontName?: string;
        fontSize?: number;
        italic?: boolean;
        scheme?: string;
        strike?: boolean;
        text: string;
        underline?: boolean;
        underlineStyle?: string;
        vertAlign?: string;
    }
    Index
    bold?: boolean

    Whether this segment is bold.

    charset?: number

    Character set identifier.

    color?: string

    Text color for this segment as hex RGB (RRGGBB) or ARGB (AARRGGBB), with or without a leading #; written as uppercase ARGB (FF alpha added for RRGGBB) and read back in that form (e.g., 'FF0000').

    colorSpec?: ColorData

    The full run colour; see ColorData for the precedence rule against color.

    family?: number

    Font family number.

    fontName?: string

    Font family name for this segment.

    fontSize?: number

    Font size in points for this segment.

    italic?: boolean

    Whether this segment is italic.

    scheme?: string

    Font scheme: 'major', 'minor' or 'none'.

    strike?: boolean

    Whether this segment has strikethrough.

    text: string

    The text content for this segment.

    underline?: boolean

    Whether this segment is underlined.

    underlineStyle?: string

    The underline type when it is not single: 'double', 'singleAccounting' or 'doubleAccounting'.

    vertAlign?: string

    Vertical alignment: 'baseline', 'superscript' or 'subscript'.