docx
    Preparing search index...

    Type Alias ILevelsOptions

    Options for configuring a numbering level.

    type ILevelsOptions = {
        alignment?: typeof AlignmentType[keyof typeof AlignmentType];
        format?: typeof LevelFormat[keyof typeof LevelFormat];
        isLegalNumberingStyle?: boolean;
        level: number;
        start?: number;
        style?: {
            paragraph?: ILevelParagraphStylePropertiesOptions;
            run?: IRunStylePropertiesOptions;
        };
        suffix?: typeof LevelSuffix[keyof typeof LevelSuffix];
        text?: string;
    }
    Index

    Properties

    alignment?: typeof AlignmentType[keyof typeof AlignmentType]

    Text alignment for the numbering

    format?: typeof LevelFormat[keyof typeof LevelFormat]

    Number format type (decimal, roman, letter, etc.)

    isLegalNumberingStyle?: boolean

    Use legal numbering style

    level: number

    Level index (0-8)

    start?: number

    Starting number for this level

    style?: {
        paragraph?: ILevelParagraphStylePropertiesOptions;
        run?: IRunStylePropertiesOptions;
    }

    Run and paragraph style properties

    Type Declaration

    suffix?: typeof LevelSuffix[keyof typeof LevelSuffix]

    Character(s) following the numbering (tab, space, nothing)

    text?: string

    Level text template with placeholders like %1, %2