API reference / Common / Engine types / TablePartStyle
Interface: TablePartStyle
What one region of a table style says.
CT_TblStylePr and CT_TablePartStyle unify here — but field by field, not by pretending the two dialects say the same things. docx's region is {w:pPr, w:rPr, w:tblPr, w:trPr, w:tcPr} and pptx's is {a:tcTxStyle, a:tcStyle}, so five of the six fields below belong to exactly one dialect and only the character half is shared.
The cell half is the pair worth naming: cell is docx's w:tcPr (CT_TcPr, the same type an instance cell uses) and cell_style is pptx's a:tcStyle (CT_TableStyleCellStyle, whose edges and fill are themeable). They are different schema types that happen to describe the same slot, and folding them into one bag would give every pptx region fields it cannot state and every docx region a themeable arm it cannot take.
Properties
| Property | Description |
|---|---|
paragraph?TextParagraphProperties | w:pPr. docx-only. |
character?TextCharacterProperties | w:rPr / a:tcTxStyle. a:tcTxStyle lands here without loss: its @b / @i are ST_OnOffStyleType, whose def arm is this sparse set's "unspecified"; its EG_ColorChoice is the text span's fill; and its a:fontRef idx="minor" is the +mn-lt / +mn-ea / +mn-cs triple the theme font resolver already binds. |
table?TableProperties | w:tblPr. docx-only. |
row?TableRowProperties | w:trPr. docx-only. |
cell?TableCellProperties | w:tcPr. docx-only — CT_TblStylePr's cell half is CT_TcPr, an instance cell's own type. |
cellStyle?TableCellStyle | a:tcStyle. pptx-only — see [TableCellStyle]. |