Appearance
@shbernal/pptxgenjs / index / SlideNumberProps
Interface: SlideNumberProps
Defined in: core-interfaces.ts:2821
Extends
Properties
align?
optionalalign?:HAlign
Defined in: core-interfaces.ts:521
Horizontal alignment
Default
ts
'left'Inherited from
bold?
optionalbold?:boolean
Defined in: core-interfaces.ts:526
Bold style
Default
ts
falseInherited from
breakLine?
optionalbreakLine?:boolean
Defined in: core-interfaces.ts:531
Add a line-break
Default
ts
falseInherited from
bullet?
optionalbullet?:boolean| {characterCode?:string;code?:string;color?:string;fontFace?:string;image?: {data?:string;path?:string; };indent?:number;marginPt?:number;numberStartAt?:number;numberType?:"alphaLcParenBoth"|"alphaLcParenR"|"alphaLcPeriod"|"alphaUcParenBoth"|"alphaUcParenR"|"alphaUcPeriod"|"arabicParenBoth"|"arabicParenR"|"arabicPeriod"|"arabicPlain"|"romanLcParenBoth"|"romanLcParenR"|"romanLcPeriod"|"romanUcParenBoth"|"romanUcParenR"|"romanUcPeriod";size?:number;startAt?:number;style?:string;type?:"number"|"bullet"; }
Defined in: core-interfaces.ts:547
Add standard or custom bullet
- use
truefor standard bullet - pass object options for custom bullet
Union Members
boolean
Type Literal
{ characterCode?: string; code?: string; color?: string; fontFace?: string; image?: { data?: string; path?: string; }; indent?: number; marginPt?: number; numberStartAt?: number; numberType?: "alphaLcParenBoth" | "alphaLcParenR" | "alphaLcPeriod" | "alphaUcParenBoth" | "alphaUcParenR" | "alphaUcPeriod" | "arabicParenBoth" | "arabicParenR" | "arabicPeriod" | "arabicPlain" | "romanLcParenBoth" | "romanLcParenR" | "romanLcPeriod" | "romanUcParenBoth" | "romanUcParenR" | "romanUcPeriod"; size?: number; startAt?: number; style?: string; type?: "number" | "bullet"; }
characterCode?
optionalcharacterCode?:string
Bullet character code (unicode)
Since
v3.3.0
Example
ts
'25BA' // 'BLACK RIGHT-POINTING POINTER' (U+25BA)code?
optionalcode?:string
Bullet code (unicode)
Deprecated
v3.3.0 - use characterCode
color?
optionalcolor?:string
Bullet glyph color (separate from the text run color)
Since
v4.0.0
Example
ts
'FF0000' // red bulletfontFace?
optionalfontFace?:string
Bullet glyph font typeface (<a:buFont/>), e.g. for symbol-font bullets
Since
v4.0.0
Example
ts
'Wingdings' // render `characterCode` using the Wingdings fontimage?
optionalimage?:object
Image to use as the bullet glyph ("picture bullet", <a:buBlip>)
- supply an image
path(filesystem/URL) or base64data(same forms asaddImage()) - raster formats (PNG/JPG/GIF) are recommended; use
sizeto scale relative to the text height - takes precedence over
type/characterCodewhen set
Since
v4.0.0
Examples
ts
image: { path: 'images/star.png' }ts
image: { data: 'image/png;base64,iVBOR...' }image.data?
optionaldata?:string
image.path?
optionalpath?:string
indent?
optionalindent?:number
Indentation (space between bullet and text) (points)
Since
v3.3.0
Default
ts
27 // DEF_BULLET_MARGINExample
ts
10 // Indents text 10 points from bulletmarginPt?
optionalmarginPt?:number
Margin between bullet and text
Since
v3.2.1
Deprecated
v3.3.0 - use indent
numberStartAt?
optionalnumberStartAt?:number
Number bullets start at
Since
v3.3.0
Default
ts
1Example
ts
10 // numbered bullets start with 10numberType?
optionalnumberType?:"alphaLcParenBoth"|"alphaLcParenR"|"alphaLcPeriod"|"alphaUcParenBoth"|"alphaUcParenR"|"alphaUcPeriod"|"arabicParenBoth"|"arabicParenR"|"arabicPeriod"|"arabicPlain"|"romanLcParenBoth"|"romanLcParenR"|"romanLcPeriod"|"romanUcParenBoth"|"romanUcParenR"|"romanUcPeriod"
Number type
Since
v3.3.0
Example
ts
'romanLcParenR' // roman numerals lower-case with paranthesis rightsize?
optionalsize?:number
Bullet glyph size as a percentage of the run's text size (25–400)
Since
v4.0.0
Default
ts
100Example
ts
80 // bullet glyph is 80% of the text sizestartAt?
optionalstartAt?:number
Number to start with (only applies to type:number)
Deprecated
v3.3.0 - use numberStartAt
style?
optionalstyle?:string
Number type
Deprecated
v3.3.0 - use numberType
type?
optionaltype?:"number"|"bullet"
Bullet type
Default
ts
bulletDefault
ts
falseInherited from
caps?
optionalcaps?:"small"|"all"|"none"
Defined in: core-interfaces.ts:663
Text capitalization
'all'= ALL CAPS'small'= Small Caps'none'= no override (default)- PowerPoint: Font > Effects > All Caps / Small Caps
Inherited from
color?
optionalcolor?:string
Defined in: core-interfaces.ts:671
Text color
HexColororThemeColor- MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Color
Examples
ts
'FF0000' // hex color (red)ts
pptx.SchemeColor.text1 // Theme color (Text1)Inherited from
fontFace?
optionalfontFace?:string
Defined in: core-interfaces.ts:681
Font face name
Applied to the Latin (<a:latin>) and complex-script (<a:cs>) font slots, matching how PowerPoint writes a font picked from the UI. The East Asian slot (<a:ea>) is left to inherit from the theme unless fontFaceEA is set — forcing a Latin-only face into the East Asian slot duplicates/ghosts text in Office 365.
Example
ts
'Arial' // Arial fontInherited from
fontFaceEA?
optionalfontFaceEA?:string
Defined in: core-interfaces.ts:689
East Asian font face name (<a:ea> slot), used to render CJK (Chinese/Japanese/Korean) glyphs
Set this when the East Asian font differs from fontFace. When omitted, <a:ea> inherits the theme East Asian font, which is what PowerPoint does for Latin fonts.
Example
ts
'微軟正黑體' // render East Asian glyphs with Microsoft JhengHeiInherited from
fontSize?
optionalfontSize?:number
Defined in: core-interfaces.ts:694
Font size
Example
ts
12 // Font size 12Inherited from
h?
optionalh?:Coord
Defined in: core-interfaces.ts:47
Height
- inches or percentage
Examples
ts
10.25 // height in inchests
'75%' // height as percentage of slide sizeInherited from
highlight?
optionalhighlight?:string
Defined in: core-interfaces.ts:699
Text highlight color (hex format)
Example
ts
'FFFF00' // yellowInherited from
italic?
optionalitalic?:boolean
Defined in: core-interfaces.ts:704
italic style
Default
ts
falseInherited from
lang?
optionallang?:string
Defined in: core-interfaces.ts:711
language
- ISO 639-1 standard language code
Default
ts
'en-US' // english USExample
ts
'fr-CA' // french CanadianInherited from
margin?
optionalmargin?:Margin
Defined in: core-interfaces.ts:2825
margin (points)
softBreakBefore?
optionalsoftBreakBefore?:boolean
Defined in: core-interfaces.ts:717
Add a soft line-break (shift+enter) before line text content
Default
ts
falseSince
v3.5.0
Inherited from
tabStops?
optionaltabStops?:object[]
Defined in: core-interfaces.ts:723
tab stops
- PowerPoint: Paragraph > Tabs > Tab stop position
alignment?
optionalalignment?:"r"|"ctr"|"l"|"dec"
position
position:
number
Example
ts
[{ position:1 }, { position:3 }] // Set first tab stop to 1 inch, set second tab stop to 3 inchesInherited from
textDirection?
optionaltextDirection?:"horz"|"vert"|"vert270"|"wordArtVert"
Defined in: core-interfaces.ts:732
text direction horz = horizontal vert = rotate 90^ vert270 = rotate 270^ wordArtVert = stacked
Default
ts
'horz'Inherited from
textWarp?
optionaltextWarp?:string
Defined in: core-interfaces.ts:540
Preset text warp / WordArt shape (<a:bodyPr><a:prstTxWarp prst="..">), which bends the text along a preset path (arch, circle, wave, …). The value is an OOXML ST_TextShapeType preset name.
Since
v4.0.0
Examples
ts
'textArchUp' // bend text along an upward arch (e.g. a label following a ring/arc)ts
'textCircle'Inherited from
transparency?
optionaltransparency?:number
Defined in: core-interfaces.ts:739
Transparency (percent)
- MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Transparency
- range: 0-100
Default
ts
0Inherited from
underline?
optionalunderline?:object
Defined in: core-interfaces.ts:745
underline properties
- PowerPoint: Font > Color & Underline > Underline Style/Underline Color
color?
optionalcolor?:string
style?
optionalstyle?:"none"|"dash"|"dashHeavy"|"dashLong"|"dashLongHeavy"|"dbl"|"dotDash"|"dotDashHeave"|"dotDotDash"|"dotDotDashHeavy"|"dotted"|"dottedHeavy"|"heavy"|"sng"|"wavy"|"wavyDbl"|"wavyHeavy"
Default
ts
(none)Inherited from
valign?
optionalvalign?:VAlign
Defined in: core-interfaces.ts:770
vertical alignment
Default
ts
'top'Inherited from
w?
optionalw?:Coord
Defined in: core-interfaces.ts:54
Width
- inches or percentage
Examples
ts
10.25 // width in inchests
'75%' // width as percentage of slide sizeInherited from
x?
optionalx?:Coord
Defined in: core-interfaces.ts:33
Horizontal position
- inches or percentage
Examples
ts
10.25 // position in inchests
'75%' // position as percentage of slide sizeInherited from
y?
optionaly?:Coord
Defined in: core-interfaces.ts:40
Vertical position
- inches or percentage
Examples
ts
10.25 // position in inchests
'75%' // position as percentage of slide size