Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / MasterTextStyleLevel

Interface: MasterTextStyleLevel

Defined in: src/types/master.ts:75

Styling for one paragraph level (a:lvlNpPr) of a slide-master text style. Every field is optional; an unset field keeps PowerPoint's built-in default for that level. Configure via SlideMasterProps.textStyles.

Properties

align?

optional align?: HAlign

Defined in: src/types/master.ts:87

Horizontal alignment (a:lvlNpPr@algn).


bold?

optional bold?: boolean

Defined in: src/types/master.ts:83

Bold text (a:defRPr@b).


bullet?

optional bullet?: boolean | MasterBulletProps

Defined in: src/types/master.ts:93

Bullet config: false emits a:buNone; an object configures a char/number bullet. Unset keeps the level default.


color?

optional color?: string

Defined in: src/types/master.ts:81

Text color — hex ('C00000') or theme slot ('tx1') — emitted as a:defRPr/a:solidFill.


fontFace?

optional fontFace?: string

Defined in: src/types/master.ts:79

Font face (a:defRPr/a:latin@typeface). Unset keeps the theme font (+mn-lt/+mj-lt).


fontSize?

optional fontSize?: number

Defined in: src/types/master.ts:77

Font size in points (a:defRPr@sz), e.g. 24.


indent?

optional indent?: number

Defined in: src/types/master.ts:91

First-line indent in inches (a:lvlNpPr@indent); negative produces a hanging bullet.


italic?

optional italic?: boolean

Defined in: src/types/master.ts:85

Italic text (a:defRPr@i).


marginLeft?

optional marginLeft?: number

Defined in: src/types/master.ts:89

Left margin in inches (a:lvlNpPr@marL); for a hanging bullet this is the text indent.