@twip/web
    Preparing search index...

    Interface DialogValues

    Each dialog's values.

    interface DialogValues {
        accessibility: { issues: { id: string; text: string; tip: boolean }[] };
        adjustListIndents: {
            follow: FollowNumber;
            numberPosition: number;
            tab: number | null;
            textIndent: number;
        };
        altText: { decorative: boolean; text: string };
        autoCorrect: Record<never, never>;
        banding: { columnBand: number; rowBand: number };
        bordersShading: {
            applyTo: "text" | "table" | "paragraph" | "cell";
            between: BorderLine | null;
            bottom: BorderLine | null;
            color: `#${string}` | "auto";
            diagonalDown: BorderLine | null;
            diagonalUp: BorderLine | null;
            fill: `#${string}` | "none";
            insideVertical: BorderLine | null;
            left: BorderLine | null;
            pageApplyTo: "wholeDocument" | "thisSection";
            pageBottom: BorderLine | null;
            pageDisplay: "allPages" | "firstPage" | "notFirstPage";
            pageLeft: BorderLine | null;
            pageOffsetFrom: "text" | "page";
            pageRight: BorderLine | null;
            pageSetting: "none" | "box" | "shadow" | "custom";
            pageTop: BorderLine | null;
            pattern: ShadingPattern;
            patternColor: `#${string}` | "auto";
            right: BorderLine | null;
            setting: "none" | "box" | "shadow" | "custom";
            style: BorderLineStyle;
            tab: "borders" | "pageBorder" | "shading";
            top: BorderLine | null;
            width: number;
        };
        bulletsNumbering: {
            entry: string
            | null;
            gallery: "bullet" | "numbering" | "multilevel";
        };
        defineBullet: {
            alignment: "center"
            | "left"
            | "right";
            font: string | null;
            picture: string | null;
            text: string;
        };
        defineMultilevelList: {
            applyTo: "thisPointForward"
            | "wholeList"
            | "currentParagraph";
            galleryLevel: number;
            level: number;
            levels: ListLevel[];
            listName: string;
        };
        defineNumberFormat: {
            alignment: "center"
            | "left"
            | "right";
            font: string | null;
            format: NumberFormat;
            text: string;
        };
        dropCap: {
            distance: number;
            font: string;
            lines: number;
            position: "none"
            | "dropped"
            | "inMargin";
        };
        fillEffects: {
            background: ColourValue;
            color1: ColourValue;
            color2: ColourValue;
            colors: "preset"
            | "one"
            | "two";
            foreground: ColourValue;
            lightness: number;
            pattern: string;
            picture: Uint8Array;
            preset: string;
            shading:
                | "horizontal"
                | "vertical"
                | "diagonalUp"
                | "diagonalDown"
                | "fromCorner"
                | "fromCenter";
            tab: "gradient"
            | "pattern"
            | "picture"
            | "texture";
            texture: Uint8Array;
            variant: number;
        };
        font: {
            allCaps: Tri;
            characterSpacing: Mixed<number>;
            color: Mixed<`#${string}` | "auto">;
            contextualAlternates: Tri;
            doubleStrikethrough: Tri;
            emboss: Tri;
            engrave: Tri;
            font: Mixed<string>;
            hidden: Tri;
            kerning: Mixed<number>;
            ligatures: Mixed<Ligatures>;
            numberForm: Mixed<NumberForm>;
            numberSpacing: Mixed<NumberSpacing>;
            outline: Tri;
            position: Mixed<number>;
            scale: Mixed<number>;
            shadow: Tri;
            size: Mixed<number>;
            smallCaps: Tri;
            strikethrough: Tri;
            style: Mixed<"bold" | "italic" | "regular" | "boldItalic">;
            stylisticSet: Mixed<number>;
            subscript: Tri;
            superscript: Tri;
            textFill: Mixed<"none" | FillValue>;
            textGlow: Mixed<"none" | Glow>;
            textOutline: Mixed<"none" | TextOutline>;
            textReflection: Mixed<"none" | TextReflection>;
            textShadow: Mixed<"none" | TextShadow>;
            underline: Mixed<UnderlineStyle>;
            underlineColor: Mixed<`#${string}` | "auto">;
        };
        frame: FrameProperties & { moveWithText: boolean; remove: boolean };
        hyperlink: { address: string; bookmark: string; text: string };
        insertTable: { columns: number; rows: number };
        manageStyles: {
            defaults: DocumentDefaults;
            description: string;
            recommendedOnly: boolean;
            selected: StyleId | null;
            sort: "asRecommended" | "alphabetical" | "basedOn" | "byType";
            styles: {
                builtIn: boolean;
                id: StyleId;
                locked: boolean;
                name: string;
                priority: number;
                type: "table" | "list" | "paragraph" | "character";
                visibility: "show" | "hideUntilUsed" | "hide";
            }[];
            tab: "edit"
            | "recommend"
            | "restrict"
            | "setDefaults";
        };
        pageSetup: {
            applyTo: "section"
            | "wholeDocument"
            | "thisPointForward";
            bottom: number;
            differentFirstPage: boolean;
            differentOddEven: boolean;
            footerDistance: number;
            gutter: number;
            gutterAtTop: boolean;
            headerDistance: number;
            height: number;
            left: number;
            lineNumbers: LineNumbers | null;
            multiplePages: MultiplePagesMode;
            orientation: "portrait" | "landscape";
            right: number;
            sectionStart: SectionBreakKind;
            top: number;
            verticalAlignment: "top" | "bottom" | "center" | "justified";
            width: number;
        };
        paragraph: {
            after: Mixed<number | "auto">;
            alignment: Mixed<"center" | "left" | "right" | "justify">;
            before: Mixed<number | "auto">;
            by: Mixed<number>;
            collapsed: Tri;
            contextualSpacing: Tri;
            dontHyphenate: Tri;
            keepLinesTogether: Tri;
            keepWithNext: Tri;
            left: Mixed<number>;
            lineSpacing: Mixed<LineSpacing>;
            mirrorIndents: Tri;
            outlineLevel: Mixed<number | "body">;
            pageBreakBefore: Tri;
            right: Mixed<number>;
            special: Mixed<"none" | "hanging" | "firstLine">;
            suppressLineNumbers: Tri;
            widowControl: Tri;
        };
        pictureSize: {
            crop: | {
                bottom?: number;
                left?: number;
                right?: number;
                top?: number;
            }
            | null;
            height: number;
            lockAspect: boolean;
            relativeHeight: RelativeSize
            | null;
            relativeWidth: RelativeSize | null;
            reset: boolean;
            scaleHeight: number;
            scaleWidth: number;
            width: number;
        };
        printedWatermark: {
            bold: boolean;
            color: `#${string}`;
            font: string;
            italic: boolean;
            language: string;
            layout: "diagonal"
            | "horizontal";
            picture: Uint8Array;
            scale: number | null;
            size: number | null;
            text: string;
            transparency: number;
            washout: boolean;
            watermark: "text" | "none" | "picture";
        };
        setNumberingValue: {
            advance: boolean;
            mode: "continue"
            | "startNew";
            value: number;
        };
        style: StyleDialogValues;
        tableProperties: {
            alignment: "center"
            | "left"
            | "right";
            allowSpacing: boolean;
            cellAlignment: Mixed<"top" | "bottom" | "center">;
            cellMargins: { bottom: number; left: number; right: number; top: number };
            cellSpacing: number;
            cellWidth: Mixed<TableWidth>;
            columnWidth: Mixed<number>;
            description: string;
            fitText: Tri;
            headerRow: Tri;
            indent: number;
            rowCanBreak: Tri;
            rowHeight: Mixed<RowHeight>;
            title: string;
            width: TableWidth;
            wrapText: Tri;
        };
        tabs: {
            action: "none"
            | "clear"
            | "set"
            | "clearAll";
            alignment: TabAlignment;
            cleared: number[];
            defaultStop: number;
            leader: TabLeader;
            position: number | null;
            stops: {
                alignment: TabAlignment;
                inherited: boolean;
                leader: TabLeader;
                position: number;
            }[];
        };
    }
    Index
    accessibility: { issues: { id: string; text: string; tip: boolean }[] }

    The Accessibility checker (read only).

    adjustListIndents: {
        follow: FollowNumber;
        numberPosition: number;
        tab: number | null;
        textIndent: number;
    }

    Adjust List Indents.

    altText: { decorative: boolean; text: string }

    The Alt text dialog.

    autoCorrect: Record<never, never>

    The AutoCorrect rules: the application's own dialog, asked for by dialogRequested. open rejects unsupported.

    banding: { columnBand: number; rowBand: number }

    Banding (a table style's, from the style dialog's Format menu): the rows and the columns in each band.

    bordersShading: {
        applyTo: "text" | "table" | "paragraph" | "cell";
        between: BorderLine | null;
        bottom: BorderLine | null;
        color: `#${string}` | "auto";
        diagonalDown: BorderLine | null;
        diagonalUp: BorderLine | null;
        fill: `#${string}` | "none";
        insideVertical: BorderLine | null;
        left: BorderLine | null;
        pageApplyTo: "wholeDocument" | "thisSection";
        pageBottom: BorderLine | null;
        pageDisplay: "allPages" | "firstPage" | "notFirstPage";
        pageLeft: BorderLine | null;
        pageOffsetFrom: "text" | "page";
        pageRight: BorderLine | null;
        pageSetting: "none" | "box" | "shadow" | "custom";
        pageTop: BorderLine | null;
        pattern: ShadingPattern;
        patternColor: `#${string}` | "auto";
        right: BorderLine | null;
        setting: "none" | "box" | "shadow" | "custom";
        style: BorderLineStyle;
        tab: "borders" | "pageBorder" | "shading";
        top: BorderLine | null;
        width: number;
    }

    Borders and Shading: the borders of the selected paragraphs, and the shading of the paragraphs or the text. A setting (none, box, shadow) sets the edges with the line style, color and width; setting an edge makes it custom. The Page Border tab does the same for the section's pages.

    Type Declaration

    • applyTo: "text" | "table" | "paragraph" | "cell"

      The paragraphs, the text (a box only), the selected cells (or a table style part's), or the table.

    • between: BorderLine | null

      The line between paragraphs (a table style part's inside horizontal line).

    • bottom: BorderLine | null
    • color: `#${string}` | "auto"
    • diagonalDown: BorderLine | null

      The cells' diagonal from their top left to their bottom right corner (applied to cells, or a table style's part).

    • diagonalUp: BorderLine | null

      The cells' diagonal from their top right to their bottom left corner.

    • fill: `#${string}` | "none"

      The shading's fill.

    • insideVertical: BorderLine | null

      A table style part's inside vertical line.

    • left: BorderLine | null
    • pageApplyTo: "wholeDocument" | "thisSection"
    • pageBottom: BorderLine | null
    • pageDisplay: "allPages" | "firstPage" | "notFirstPage"
    • pageLeft: BorderLine | null
    • pageOffsetFrom: "text" | "page"
    • pageRight: BorderLine | null
    • pageSetting: "none" | "box" | "shadow" | "custom"

      Page Border: the setting, the page's edges, what they're measured from, the pages and the sections.

    • pageTop: BorderLine | null
    • pattern: ShadingPattern

      The shading's pattern, and its color.

    • patternColor: `#${string}` | "auto"
    • right: BorderLine | null
    • setting: "none" | "box" | "shadow" | "custom"

      The setting.

    • style: BorderLineStyle

      The line the setting and new edges take.

    • tab: "borders" | "pageBorder" | "shading"

      The tab shown.

    • top: BorderLine | null

      The edges, or null for none.

    • width: number
    bulletsNumbering: {
        entry: string | null;
        gallery: "bullet" | "numbering" | "multilevel";
    }

    Bullets and Numbering (Numbering on the style dialog's Format menu): a gallery entry, or null for no list.

    defineBullet: {
        alignment: "center" | "left" | "right";
        font: string | null;
        picture: string | null;
        text: string;
    }

    Define New Bullet: the bullet of the selection's list level (or a new list's).

    defineMultilevelList: {
        applyTo: "thisPointForward" | "wholeList" | "currentParagraph";
        galleryLevel: number;
        level: number;
        levels: ListLevel[];
        listName: string;
    }

    Define New Multilevel List: the nine levels, the level shown (0 to 8), what they apply to, and the ListNum name.

    defineNumberFormat: {
        alignment: "center" | "left" | "right";
        font: string | null;
        format: NumberFormat;
        text: string;
    }

    Define New Number Format: the number of the selection's list level (or a new list's).

    dropCap: {
        distance: number;
        font: string;
        lines: number;
        position: "none" | "dropped" | "inMargin";
    }

    Drop Cap, on the selection's paragraph: where its first letter goes, its font (empty: the text's), lines and distance.

    fillEffects: {
        background: ColourValue;
        color1: ColourValue;
        color2: ColourValue;
        colors: "preset" | "one" | "two";
        foreground: ColourValue;
        lightness: number;
        pattern: string;
        picture: Uint8Array;
        preset: string;
        shading:
            | "horizontal"
            | "vertical"
            | "diagonalUp"
            | "diagonalDown"
            | "fromCorner"
            | "fromCenter";
        tab: "gradient"
        | "pattern"
        | "picture"
        | "texture";
        texture: Uint8Array;
        variant: number;
    }

    Fill Effects, for the page colour: a gradient, a texture or picture, or a pattern.

    Type Declaration

    • background: ColourValue
    • color1: ColourValue
    • color2: ColourValue
    • colors: "preset" | "one" | "two"

      Gradient: one colour, two, or a preset.

    • foreground: ColourValue
    • lightness: number

      One colour: 0 (dark) to 1 (light).

    • pattern: string

      Pattern: its ECMA-376 name.

    • picture: Uint8Array

      Picture: the image (a picture field).

    • preset: string

      The preset's name.

    • shading:
          | "horizontal"
          | "vertical"
          | "diagonalUp"
          | "diagonalDown"
          | "fromCorner"
          | "fromCenter"
    • tab: "gradient" | "pattern" | "picture" | "texture"
    • texture: Uint8Array

      Texture: the tile's image (a picture field).

    • variant: number

      Which of the shading style's variants, from 1.

    font: {
        allCaps: Tri;
        characterSpacing: Mixed<number>;
        color: Mixed<`#${string}` | "auto">;
        contextualAlternates: Tri;
        doubleStrikethrough: Tri;
        emboss: Tri;
        engrave: Tri;
        font: Mixed<string>;
        hidden: Tri;
        kerning: Mixed<number>;
        ligatures: Mixed<Ligatures>;
        numberForm: Mixed<NumberForm>;
        numberSpacing: Mixed<NumberSpacing>;
        outline: Tri;
        position: Mixed<number>;
        scale: Mixed<number>;
        shadow: Tri;
        size: Mixed<number>;
        smallCaps: Tri;
        strikethrough: Tri;
        style: Mixed<"bold" | "italic" | "regular" | "boldItalic">;
        stylisticSet: Mixed<number>;
        subscript: Tri;
        superscript: Tri;
        textFill: Mixed<"none" | FillValue>;
        textGlow: Mixed<"none" | Glow>;
        textOutline: Mixed<"none" | TextOutline>;
        textReflection: Mixed<"none" | TextReflection>;
        textShadow: Mixed<"none" | TextShadow>;
        underline: Mixed<UnderlineStyle>;
        underlineColor: Mixed<`#${string}` | "auto">;
    }

    The Font dialog.

    Type Declaration

    frame: FrameProperties & { moveWithText: boolean; remove: boolean }

    The Frame dialog, on the frame the selection is in. Move with text is the vertical position relative to the paragraph; remove is its Remove Frame button.

    Type Declaration

    • moveWithText: boolean

      Move with text.

    • remove: boolean

      Remove Frame: applying removes the frame.

    hyperlink: { address: string; bookmark: string; text: string }

    The Hyperlink dialog: bookmark is the place it goes to ('_top': the document's start), in this document or, with an address, in that one; the bookmark field's options list this document's.

    insertTable: { columns: number; rows: number }

    The Insert table dialog.

    manageStyles: {
        defaults: DocumentDefaults;
        description: string;
        recommendedOnly: boolean;
        selected: StyleId | null;
        sort: "asRecommended" | "alphabetical" | "basedOn" | "byType";
        styles: {
            builtIn: boolean;
            id: StyleId;
            locked: boolean;
            name: string;
            priority: number;
            type: "table" | "list" | "paragraph" | "character";
            visibility: "show" | "hideUntilUsed" | "hide";
        }[];
        tab: "edit"
        | "recommend"
        | "restrict"
        | "setDefaults";
    }

    Manage Styles: its Edit, Recommend, Restrict and Set Defaults tabs. Modify, New Style and Delete are Dialogs.openStyle and deleteStyle; Import/Export isn't offered.

    Type Declaration

    • defaults: DocumentDefaults

      The document's default formatting (Set Defaults).

    • description: string

      The selected style's formatting in words, written by the editor.

    • recommendedOnly: boolean

      Only the styles that show in lists.

    • selected: StyleId | null

      The style selected in the list.

    • sort: "asRecommended" | "alphabetical" | "basedOn" | "byType"

      How the list sorts.

    • styles: {
          builtIn: boolean;
          id: StyleId;
          locked: boolean;
          name: string;
          priority: number;
          type: "table" | "list" | "paragraph" | "character";
          visibility: "show" | "hideUntilUsed" | "hide";
      }[]

      The styles in sort order: their visibility, priority and lock are what Recommend and Restrict change.

    • tab: "edit" | "recommend" | "restrict" | "setDefaults"

      The tab shown.

    pageSetup: {
        applyTo: "section" | "wholeDocument" | "thisPointForward";
        bottom: number;
        differentFirstPage: boolean;
        differentOddEven: boolean;
        footerDistance: number;
        gutter: number;
        gutterAtTop: boolean;
        headerDistance: number;
        height: number;
        left: number;
        lineNumbers: LineNumbers | null;
        multiplePages: MultiplePagesMode;
        orientation: "portrait" | "landscape";
        right: number;
        sectionStart: SectionBreakKind;
        top: number;
        verticalAlignment: "top" | "bottom" | "center" | "justified";
        width: number;
    }

    The Page setup dialog.

    Type Declaration

    • applyTo: "section" | "wholeDocument" | "thisPointForward"
    • bottom: number
    • differentFirstPage: boolean
    • differentOddEven: boolean
    • footerDistance: number
    • gutter: number
    • gutterAtTop: boolean
    • headerDistance: number
    • height: number
    • left: number
    • lineNumbers: LineNumbers | null

      Line numbers, or none.

    • multiplePages: MultiplePagesMode
    • orientation: "portrait" | "landscape"
    • right: number
    • sectionStart: SectionBreakKind

      Where the section starts.

    • top: number
    • verticalAlignment: "top" | "bottom" | "center" | "justified"
    • width: number
    paragraph: {
        after: Mixed<number | "auto">;
        alignment: Mixed<"center" | "left" | "right" | "justify">;
        before: Mixed<number | "auto">;
        by: Mixed<number>;
        collapsed: Tri;
        contextualSpacing: Tri;
        dontHyphenate: Tri;
        keepLinesTogether: Tri;
        keepWithNext: Tri;
        left: Mixed<number>;
        lineSpacing: Mixed<LineSpacing>;
        mirrorIndents: Tri;
        outlineLevel: Mixed<number | "body">;
        pageBreakBefore: Tri;
        right: Mixed<number>;
        special: Mixed<"none" | "hanging" | "firstLine">;
        suppressLineNumbers: Tri;
        widowControl: Tri;
    }

    The Paragraph dialog.

    Type Declaration

    • after: Mixed<number | "auto">
    • alignment: Mixed<"center" | "left" | "right" | "justify">
    • before: Mixed<number | "auto">
    • by: Mixed<number>
    • collapsed: Tri

      Collapsed by default (with an outline level).

    • contextualSpacing: Tri

      Don't add space between paragraphs of the same style.

    • dontHyphenate: Tri
    • keepLinesTogether: Tri
    • keepWithNext: Tri
    • left: Mixed<number>
    • lineSpacing: Mixed<LineSpacing>
    • mirrorIndents: Tri
    • outlineLevel: Mixed<number | "body">
    • pageBreakBefore: Tri
    • right: Mixed<number>
    • special: Mixed<"none" | "hanging" | "firstLine">
    • suppressLineNumbers: Tri
    • widowControl: Tri
    pictureSize: {
        crop:
            | { bottom?: number; left?: number; right?: number; top?: number }
            | null;
        height: number;
        lockAspect: boolean;
        relativeHeight: RelativeSize | null;
        relativeWidth: RelativeSize | null;
        reset: boolean;
        scaleHeight: number;
        scaleWidth: number;
        width: number;
    }

    The Picture size dialog.

    Type Declaration

    • crop: { bottom?: number; left?: number; right?: number; top?: number } | null

      A picture's crop (Crop from), by fractions of its image from each edge; null for an object that isn't one.

    • height: number
    • lockAspect: boolean
    • relativeHeight: RelativeSize | null

      Its height as a share of a box on the page; null for an absolute height.

    • relativeWidth: RelativeSize | null

      A floating object's width as a share of a box on the page; null for an absolute width.

    • reset: boolean
    • scaleHeight: number
    • scaleWidth: number
    • width: number
    printedWatermark: {
        bold: boolean;
        color: `#${string}`;
        font: string;
        italic: boolean;
        language: string;
        layout: "diagonal" | "horizontal";
        picture: Uint8Array;
        scale: number | null;
        size: number | null;
        text: string;
        transparency: number;
        washout: boolean;
        watermark: "text" | "none" | "picture";
    }

    Printed Watermark: none, a picture or a text watermark (Word's defaults for what isn't set).

    Type Declaration

    • bold: boolean
    • color: `#${string}`
    • font: string

      Empty is the theme's body font.

    • italic: boolean
    • language: string

      A BCP 47 tag; the document's language by default.

    • layout: "diagonal" | "horizontal"
    • picture: Uint8Array

      The picture's image (a picture field); empty keeps the current one.

    • scale: number | null

      Percent of the picture's size; null is Auto.

    • size: number | null

      In points, 1 to 1584; null is Auto.

    • text: string
    • transparency: number

      Percent, 0 to 100.

    • washout: boolean
    • watermark: "text" | "none" | "picture"
    setNumberingValue: {
        advance: boolean;
        mode: "continue" | "startNew";
        value: number;
    }

    Set Numbering Value: opens on the paragraph's number.

    The style dialog: opened with Dialogs.openStyle.

    tableProperties: {
        alignment: "center" | "left" | "right";
        allowSpacing: boolean;
        cellAlignment: Mixed<"top" | "bottom" | "center">;
        cellMargins: { bottom: number; left: number; right: number; top: number };
        cellSpacing: number;
        cellWidth: Mixed<TableWidth>;
        columnWidth: Mixed<number>;
        description: string;
        fitText: Tri;
        headerRow: Tri;
        indent: number;
        rowCanBreak: Tri;
        rowHeight: Mixed<RowHeight>;
        title: string;
        width: TableWidth;
        wrapText: Tri;
    }

    The Table properties dialog.

    Type Declaration

    • alignment: "center" | "left" | "right"
    • allowSpacing: boolean
    • cellAlignment: Mixed<"top" | "bottom" | "center">
    • cellMargins: { bottom: number; left: number; right: number; top: number }
    • cellSpacing: number
    • cellWidth: Mixed<TableWidth>

      The selected cells' preferred width.

    • columnWidth: Mixed<number>
    • description: string
    • fitText: Tri
    • headerRow: Tri
    • indent: number
    • rowCanBreak: Tri
    • rowHeight: Mixed<RowHeight>
    • title: string
    • width: TableWidth
    • wrapText: Tri
    tabs: {
        action: "none" | "clear" | "set" | "clearAll";
        alignment: TabAlignment;
        cleared: number[];
        defaultStop: number;
        leader: TabLeader;
        position: number | null;
        stops: {
            alignment: TabAlignment;
            inherited: boolean;
            leader: TabLeader;
            position: number;
        }[];
    }

    The Tabs dialog.

    Type Declaration

    • action: "none" | "clear" | "set" | "clearAll"

      The Set, Clear and Clear All buttons, applied by update.

    • alignment: TabAlignment
    • cleared: number[]

      Stops to clear on apply.

    • defaultStop: number
    • leader: TabLeader
    • position: number | null

      The stop being edited.

    • stops: {
          alignment: TabAlignment;
          inherited: boolean;
          leader: TabLeader;
          position: number;
      }[]