Table cell text alignment


#1

Iam currently trying to align some text in a table cell but cant seem to find a property that effects the vertical alignment. I have managed to used:

tableBuilder.ParagraphFormat.Alignment = ParagraphAlignment.Center

To align the text on the horzontallt with in the table cell but I can find a property to align it vertically.

Any ideas?


#2

Cell.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;

http://www.aspose.com/Products/Aspose.Word/Api/Aspose.Word.CellFormatMembers.html

DocumentBuilder also exposes the CellFormat property.