What I don't know is how to change the entire table (or perhaps it is the enclosing paragraph) to Normal style and centred alignment.
// Setting spaces above and below myTable.spaceBefore = mySpaceBeforeSave + myUnits; myTable.spaceAfter = mySpaceAfterSave + myUnits; // Change table justification to Centre Justified // Change table style to Normal
Assuming you in fact mean the paragraph styles of all the contents of all the cells, rather than a table style then:
I'm not quite sure what you mean by "centered alignment." Why not do that in the paragraph style? Anyhow:
Thanks for your answer. I am not talking about the content of the cells in the table.
I am talking about the entire table. When I do it manually I click the cursor to the left of the table and there is a flashing vertical bar, the full height of the table on the left edge of the table. Then when I click the centre justify button then the entire table moves to the centre of the page.
The same of the normal style - I want to apply the style to the table not the cells inside the table.
Use storyOffset to find the insertionpoint where the table is anchored. That's where you can make it centered or whatever.
myTable.storyOffset.appliedParagraphStyle = "Normal"; myTable.storyOffset.justification = Justification.CENTER_ALIGN;