Problems with RowFormat.Alignment


#1

I’ve read in the forums that you need to use RowFormat.Alignment to
make the table you’re inserting into your word doc centered. How
do I get access to this RowFormat.Alignment to set it ? I
thought it would be Aspose.Word.RowFormat.Alignment. Do i set it
within my DocumentBuilder?



Please help

R


#2

Hi,

Thank you for your interest in Aspose.Word.

Yes, if you are inserting a table with DocumentBuilder, you can access the RowFormat object via the DocumentBuilder.RowFormat property:

builder.RowFormat.Alignment = RowAlignment.Center;


#3

Here is a screenshot from my Visual Studio. I type:
builder.RowFormat. and the properties window appears.
No Alignment





#4

Are you using the latest version of Aspose.Word?


#5

Bingo. I was using version 3.0.0.0



Thanks for the help