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

Free Support Forum - aspose.com

How to get CellVerticalAlignment to work

Hello.

When I use the

builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;

my application complains that the name CellVerticalAlignment does not exist in the current context.

This code is from the Aspose.Words product documentation for inserting document elements under "Inserting a Table"

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/inserting-document-elements.html

Am I missing an include?

Thanks.

Denise

Hello

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

Thanks for your request. I think, you should just add the following line of code:

using Aspose.Words.Tables;

Best regards,