We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Count the number of lines of table cell using .NET

I need to verify number of lines in table cell with spacestable_cell.PNG (18.6 KB)

Please refer screen shot.


In your case, we suggest you following solution.

  1. Please extract the content of cell and save them into new document.
  2. Set the page width of new document with the width of cell.
  3. Get the lines of document using BuiltInDocumentProperties.Lines property.

Please read the following article.
How to Extract Selected Content Between Nodes in a Document

If you still face problem, please ZIP and attach your document. We will then provide you more information about your query.