Interface: TableCellProps
Extends
Extended by
Properties
align?
optionalalign?:HAlign
Horizontal alignment
When a shape's text is an array of runs, set this on every run of a paragraph. breakLine is not the only paragraph boundary: two adjacent runs whose align differs start a new one, so stating it on the opening run alone splits the paragraph in two. That is the mirror of bullet, paraMarginLeft and paraIndent, which are read from the opening run only. Neither mistake changes the run count: the only symptom is a differently shaped paragraph, with no error.
Default
ts
'left'Inherited from
anchorCtr?
optionalanchorCtr?:boolean
Centre the cell's whole text block horizontally within the cell (a:tcPr/@anchorCtr), independent of each paragraph's own align.
The two do different things and compose: align decides where each line sits inside the text block, anchorCtr decides where that block sits inside the cell. With left-aligned text in a wide cell, anchorCtr: true centres the ragged-right column of lines as a unit while keeping their left edges flush with each other.
false is the schema default, so it emits nothing, the same reasoning as horzOverflow: 'clip'.
Default
ts
falseautoPageCharWeight?
optionalautoPageCharWeight?:number
Auto-paging character weight
- adjusts how many characters are used before lines wrap
- range: -1.0 to 1.0
Default
ts
0.0Example
ts
0.5 // lines are longer (increases the number of characters that can fit on a given line)baseline?
optionalbaseline?:number
Baseline shift, as TextPropsOptions.baseline takes it on a text run: above zero raises the text, below zero lowers it. On a cell it applies to every run that states none.
bold?
optionalbold?:boolean
Bold style
Default
ts
falseInherited from
border?
optionalborder?:StrokeProps| [StrokeProps|null,StrokeProps|null,StrokeProps|null,StrokeProps|null]
The cell's four edge borders (a:tcPr/a:lnT|lnR|lnB|lnL).
- a single
BorderPropsis broadcast to all four sides - an array is read in TRBL order (
[top, right, bottom, left])
Overrides the table-level TableProps.border default entirely; the two do not merge per side. A null entry is a hole: that edge is left out of a:tcPr and keeps inheriting from the table style, while { type: 'none' } writes an explicit no-line that overrides it. For the two corner-to-corner rules see diagonal; for the table's outside edge see TableProps.outerBorder.
breakLine?
optionalbreakLine?:boolean
Add a line-break
Default
ts
falseInherited from
bullet?
optionalbullet?:boolean|"inherit"|TextBulletProps
Add standard or custom bullet
- use
truefor standard bullet - pass object options for custom bullet
falseis the explicit off: it writes<a:buNone/>plusmarL="0" indent="0", which overrides whatever bullet the layout's or master's list style sets for this level'inherit'states nothing at all (no bullet child and no margin attributes), so the list style keeps reaching the paragraph- omitting the option means
'inherit'on a placeholder definition (defineSlideMaster({ objects })), and on text filling a placeholder the layout defines, which takes the definition's bullet. Anywhere else it meansfalse
The margins are only a default of the bullet state: paraMarginLeft and paraIndent state @marL/@indent independently in any of the three, including an inherited margin under a drawn bullet.
When a shape's text is an array of runs, state this on the opening run only. A run that draws a bullet starts a new paragraph by itself, so repeating it (the placement that align requires) turns one three-run paragraph into three one-run paragraphs. A paragraph takes its properties from its first run.
Default
false, or 'inherit' on a placeholder
Inherited from
caps?
optionalcaps?:"small"|"all"|"none"
Text capitalization (a:rPr/@cap, ST_TextCapsType)
'all'= ALL CAPS'small'= Small Caps'none'= the explicit off: it writescap="none", which overrides a capitalization the run would otherwise inherit. Omitting the option states nothing and lets that inheritance stand- PowerPoint: Font > Effects > All Caps / Small Caps
Default
ts
(unset) inheritInherited from
cell3D?
optionalcell3D?:TableCell3DProps
A 3-D bevel on the cell (a:tcPr/a:cell3D). Niche: PowerPoint's table UI has no control for it, so it reaches a deck from a theme or another producer, and this exists to author and reproduce one. See TableCell3DProps.
charSpacing?
optionalcharSpacing?:number
Character spacing in points, as TextPropsOptions.charSpacing. On a cell it applies to every run that states none.
color?
optionalcolor?:string
Text color
HexColororThemeColor- MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Color
Examples
ts
'FF0000' // hex color (red)ts
SchemeColor.text1 // Theme color (Text1)Inherited from
colspan?
optionalcolspan?:number
Cell colspan
diagonal?
optionaldiagonal?:TableCellDiagonals
The cell's corner-to-corner rules: PowerPoint's "Diagonal Down/Up Border".
Kept off border's tuple on purpose: see TableCellDiagonals. A diagonal on a merged cell is one stroke across the whole region, so only the span origin carries it. The covered cells inherit the origin's edges but never its diagonals.
Example
ts
diagonal: { tlToBr: { type:'solid', color:'C00000' } } // strike the cell outfill?
optionalfill?:FillOption
Cell fill: a solid color, or a picture that fills the cell (a:blipFill in the cell's a:tcPr, stretched to the cell box). A picture fill embeds the image as slide media; identical sources are embedded once. Raster only: an SVG source warns and is ignored, matching shape fills. A bare Color is shorthand for a solid fill (FillOption).
Examples
ts
'FF0000' // hex color (red), shorthand for { color:'FF0000' }ts
{ color:'FF0000' } // hex color (red)ts
{ color:'0088CC', transparency:50 } // hex color, 50% transparentts
{ color:SchemeColor.accent1 } // theme color Accent1ts
{ type:'image', image:{ path:'logo.png' } } // picture fillts
{ image:{ data:'image/png;base64,…' } } // picture fill, `type` inferredfit?
optionalfit?:"resize"|"none"|TextFitShrinkProps|"shrink"
Shrink cell text to fit when it would overflow the cell's fixed height.
'shrink'measures the wrapped text and bakes a reduced literal font size onto the cell's runs so the text fits. PowerPoint does not support text autofit (normAutofit) inside table cells, so there is no font-scale flag to set; the size itself is lowered, which both PowerPoint and LibreOffice render identically with no edit/resize.- Requires the cell font registered via PptxTs.registerFontMetrics. With no metrics registered at all it is a silent no-op (the cell keeps its authored size); once any face is registered, an unregistered face is estimated and warns once per write.
- Only triggers when the cell's row has a fixed height that the text exceeds. With auto-height rows (no
rowH/h), the row simply grows, so nothing shrinks. - Only
'shrink'is acted on for cells.'resize'and the object form are ignored here: a table row already auto-grows to fit its tallest cell (the cell equivalent ofspAutoFit), so there is nothing to bake. (The wider union is shared with TextPropsOptions.fit so table-levelfitcan cascade to cells.)
Example
ts
'shrink' // measured when the cell font is registered; else no-opfontFace?
optionalfontFace?:string
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
East Asian font face name (<a:ea> slot), used to render CJK (Chinese/Japanese/Korean) glyphs
Independent of fontFace: set alone, it writes only <a:ea> and the Latin and complex-script slots keep inheriting. 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
Font size
Example
ts
12 // Font size 12Inherited from
highlight?
optionalhighlight?:string
Text highlight color (hex format)
Example
ts
'FFFF00' // yellowInherited from
horzOverflow?
optionalhorzOverflow?:"clip"|"overflow"
What happens to a single glyph wider than the cell's text width (a:tcPr/@horzOverflow).
'clip'(PowerPoint's default) cuts the glyph off at the cell edge'overflow'lets it draw past the edge, over whatever is beside it
This is not a text-wrap switch, despite the name. Lines always wrap to the column width; only an individual character too wide to fit on a line by itself is affected, so it matters for oversized display type, wide CJK/emoji glyphs, and icon fonts in a narrow column. PowerPoint has no per-cell no-wrap at all: wrap="none" on a cell's a:bodyPr is discarded on the next save (probe: test/read/fixtures/authoring/probe-table-cell-wrap.ps1). 'clip' is written as asked but is the schema default, so PowerPoint drops the attribute again the first time it saves the deck. The visible result is the same either way, and leaving this unset emits nothing at all.
Default
ts
(unset; PowerPoint clips)Example
ts
'overflow' // a 60pt glyph in a 0.5in column draws whole instead of being cuthyperlink?
optionalhyperlink?:HyperlinkProps
indentLevel?
optionalindentLevel?:number
Outline level of the paragraph a run starts, as TextPropsOptions.indentLevel.
italic?
optionalitalic?:boolean
italic style
Default
ts
falseInherited from
kerning?
optionalkerning?:number
Kerning threshold in points, as TextPropsOptions.kerning. On a cell it applies to every run that states none.
lang?
optionallang?:string
language
- ISO 639-1 standard language code
Default
ts
'en-US' // english USExample
ts
'fr-CA' // french CanadianInherited from
lineSpacing?
optionallineSpacing?:number
Line spacing in points, as TextPropsOptions.lineSpacing.
lineSpacingMultiple?
optionallineSpacingMultiple?:number
Line spacing as a multiple of single spacing, as TextPropsOptions.lineSpacingMultiple.
margin?
optionalmargin?:Margin
Cell margin (inches), in [top, right, bottom, left] order
Default
ts
[0.05, 0.1, 0.05, 0.1]paraIndent?
optionalparaIndent?:number|"inherit"
First-line indent (points): a:pPr/@indent, the offset of the paragraph's FIRST line from paraMarginLeft. Negative hangs the first line to the left of the body, which is what a bulleted paragraph does; positive indents it to the right, the "first line indented" prose form. PowerPoint: Paragraph > Indentation > Special.
'inherit'writes no@indentat all, so the paragraph takes whatever its list style (a:lstStyle→ placeholder → layout → master) sets: the same third state bullet spells, on the attribute beside it- omitting the option keeps the bullet-derived default: a drawn bullet hangs the first line by its margin,
bullet: falsewritesindent="0",bullet: 'inherit'writes nothing - a value here overrides all of those, in every bullet state
Examples
ts
-18 // hang the first line 18pt left of the body textts
18 // indent the first line 18pt, prose stylets
'inherit' // keep the list style's indent, even on a bulleted paragraphRemarks
Read from the opening run of a paragraph, like bullet and unlike align; a value on a continuation run is ignored.
Inherited from
paraMarginLeft?
optionalparaMarginLeft?:number|"inherit"
Left margin of the paragraph (points): a:pPr/@marL, where the paragraph's body text starts. This is the paragraph's own margin, not the text frame's internal padding (margin) and not the discrete outline level (indentLevel, which writes a:p/@lvl). PowerPoint: Paragraph > Indentation > Before text.
'inherit'writes no@marLat all, so the paragraph takes whatever its list style (a:lstStyle→ placeholder → layout → master) sets, the third state that omission cannot spell, since omitting it writes the bullet-derived default- omitting the option keeps that default: a drawn bullet writes its own margin (see
bullet.indent),bullet: falsewritesmarL="0",bullet: 'inherit'writes nothing - a value here overrides all of those, in every bullet state
Examples
ts
36 // body text starts 36pt (0.5in) from the frame's text edgets
'inherit' // keep the list style's margin, even on a bulleted paragraphRemarks
Read from the opening run of a paragraph, like bullet and unlike align; a value on a continuation run is ignored.
Inherited from
paraSpaceAfter?
optionalparaSpaceAfter?:number
Space after the paragraph in points, as TextPropsOptions.paraSpaceAfter.
paraSpaceBefore?
optionalparaSpaceBefore?:number
Space before the paragraph in points, as TextPropsOptions.paraSpaceBefore.
rowspan?
optionalrowspan?:number
Cell rowspan
shadow?
optionalshadow?:ShadowProps
Text shadow (a:rPr/a:effectLst), as TextPropsOptions.shadow takes it on a run. A cell has no shape effect of its own, so on a cell this is the shadow of every run that states none.
softBreakBefore?
optionalsoftBreakBefore?:boolean
Add a soft line-break (shift+enter) before line text content
Default
ts
falseInherited from
strike?
optionalstrike?:NonNullable<boolean|"noStrike"|"sngStrike"|"dblStrike"|undefined>
Strikethrough, as TextPropsOptions.strike takes it on a text run. On a cell it applies to every run that states none; on a run inside a cell's text, to that run.
tabStops?
optionaltabStops?:object[]
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"
text direction horz = horizontal vert = rotate 90^ vert270 = rotate 270^ wordArtVert = stacked
Default
ts
'horz'Inherited from
textWarp?
optionaltextWarp?:"textNoShape"|"textPlain"|"textStop"|"textTriangle"|"textTriangleInverted"|"textChevron"|"textChevronInverted"|"textRingInside"|"textRingOutside"|"textArchUp"|"textArchDown"|"textCircle"|"textButton"|"textArchUpPour"|"textArchDownPour"|"textCirclePour"|"textButtonPour"|"textCurveUp"|"textCurveDown"|"textCanUp"|"textCanDown"|"textWave1"|"textWave2"|"textDoubleWave1"|"textWave4"|"textInflate"|"textDeflate"|"textInflateBottom"|"textDeflateBottom"|"textInflateTop"|"textDeflateTop"|"textDeflateInflate"|"textDeflateInflateDeflate"|"textFadeRight"|"textFadeLeft"|"textFadeUp"|"textFadeDown"|"textSlantUp"|"textSlantDown"|"textCascadeUp"|"textCascadeDown"
Preset text warp / WordArt shape (<a:bodyPr><a:prstTxWarp prst="..">), which bends the text along a preset path (arch, circle, wave, …): the whole ST_TextShapeType set.
Examples
ts
'textArchUp' // bend text along an upward arch (e.g. a label following a ring/arc)ts
'textCircle'Inherited from
transparency?
optionaltransparency?:number
Transparency (percent)
- MS-PPT > Format Shape > Text Options > Text Fill & Outline > Text Fill > Transparency
- range: 0-100
Default
ts
0Inherited from
underline?
optionalunderline?:boolean| {color?:string;style?:"none"|"words"|"sng"|"dbl"|"heavy"|"dotted"|"dottedHeavy"|"dash"|"dashHeavy"|"dashLong"|"dashLongHeavy"|"dotDash"|"dotDashHeavy"|"dotDotDash"|"dotDotDashHeavy"|"wavy"|"wavyHeavy"|"wavyDbl"; }
underline properties
- PowerPoint: Font > Color & Underline > Underline Style/Underline Color
styleis the fullST_TextUnderlineTypeenumeration (ECMA-376 §20.1.10.81)'none'is the explicit off: it writesa:rPr/@u="none", which overrides an underline the run would otherwise inherit from its list style, placeholder, layout or master. Omitting the option instead states nothing and lets that inheritance stand. The two are different facts, not two spellings of one.trueis shorthand for{ style: 'sng' }, a single line.falsestates nothing, as omitting the option does, so an inherited underline stands;{ style: 'none' }is the explicit off.
Default
ts
(unset) inheritExamples
ts
underline: true // single underlinets
underline: { style: 'dbl', color: 'FF0000' } // red double underlineInherited from
valign?
optionalvalign?:VAlign
vertical alignment
Default
ts
'top'