hello,everyone:
After creating a table and inserting some content in the table, i want to known the height of the table. is there any API can do this?
thanks very much!
Hi there,
Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word do. A table in MS Word is a set of independent rows and each row may have different height rules. Please read following documentation links for your kind reference.
https://docs.aspose.com/words/net/working-with-tables/
https://docs.aspose.com/words/java/working-with-tables/
The height of a table row is controlled using height and height rule properties. These can be set differently for each row in the table which allows for wide control over the height of each row. In Aspose.Words these are represented by the RowFormat.Height and RowFormat.HeightRule properties of the given Row.
The height of table can be calculated by calculating the height of each row. First, please read about height rules of a table’s row from here:
https://docs.aspose.com/words/net/applying-formatting/
Hope this answers your query. Please let us know if you have any more queries.