Free Support Forum - aspose.com

Drawing a box for a table

hi,

As like in word i need to keep border for a table as box as shown in th attachment. I did not get exact property to acieve this. please help me in regarding this.

regards

sharan

Hi

Thanks for your request. You can set borders of cells and rows in Aspose.Words. Just use RowFormat and CellFormat to achieve this. Please follow the link to learn more:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.tables.cellformat.html

Please let us know if you need more information. I will be glad to help you.

Also if you need a border only around the table, you can set Top border for each cell in the first row of the table, Left border of each first cell in each row, Right border of each last cell in each row and Bottom border of each cell in the last row.

Best regards,