We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to get the cell�s horizontal alignment?

How to get the cell’s horizontal alignment?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

CellFormat has VerticalAlignment but doesn’t have HorizontalAlignment.


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Table cell cannot have horizontal alignment because it can contain few paragraphs each of which has different alignment. Therefore, you should use ParagraphFormat.Alignment. Please see Aspose.Words document object model form more information.


Best regards.