Open kristofferjalen opened 1 year ago
I don't think we expose margins directly yet. We only support choosing one of the built-in styles which already have the required margins set. This needs to be added/exposed.
Additional questions for it:
GridTable6ColorfulAccent1
that you "modify" on the table - would you want it to apply to all tables using same style or the style should now be cloned and become new style? The more think about it, the more complicated it becomes to implement.
Some documentation around this:
It seems tableCellMarginDefault is settable on the style itself. However one can use TableCellMargin to apply margins directly to specific table.
<w:tblPr>
<w:tblCellMar>
<w:top w:w="144" w:type="dxa"/>
<w:left w:w="144" w:type="dxa"/>
<w:bottom w:w="144" w:type="dxa"/>
<w:right w:w="144" w:type="dxa"/>
</w:tblCellMar>
…
</w:tblPr>
We need to support both, but in different ways.
I understand table cell margins should be set like this:
I cannot find a way to assign the
TableProperties
instance to a table though.