Word table alignment property

Hi,
I want to center a table using Aspose Word and I dont’t know where I can change the alignment property or the left indent property of a table(see attachment).
Where can I set this property to center a table ??
Thanks
Steeve

Hello
Thanks for your request. If you would like to set LeftIndentfor your table, you can try using the following code:

// Open document.
Document doc = new Document("C:\\Temp\\in.doc");
// Get collection of rows
NodeCollection rows = doc.GetChildNodes(NodeType.Row, true);
// Loop through all rows
foreach(Row row in rows)
{
    // Set LeftIndent
    row.RowFormat.LeftIndent = 50;
}
doc.Save("C:\\Temp\\out.doc");

Best regards,