How to check table renders over multiple pages using C#

I have a problem, how to check the table whether across the pages, e.g image.png (31.9 KB)
i only can get a table object by Aspose API, but i want to know the table is only one page or across multiple pages.


The Aspose.Words.Layout namespace provides classes that allow to access information such as on what page and where on a page particular document elements are positioned, when the document is formatted into pages.

Please use LayoutCollector.GetStartPageIndex and LayoutCollector.GetEndPageIndex methods to get the node’s page number where it starts and ends. Please pass first and last child nodes of table’s cell in these methods to achieve your requirement. Hope this helps you.

ok, thks,

but, I have another question of how to get all tables of specify page,


Please iterate over table nodes and get the page numbers using layout API. You can use the same methods for Table node. If both methods return the same page number, its mean that the table is on single page.