I have a requirement where I need the text in a table cell to shrink to fit one line, if it is too big to sit on one line initially.
Hi there,
Thanks for your inquiry. Please note that MS Word document is flow document and does not contain
any information about its layout into lines and pages.
Aspose.Words uses our own Rendering Engine to layout documents into 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 read about LayoutCollector and
LayoutEnumerator from here:
http://www.aspose.com/docs/display/wordsnet/LayoutCollector+class
http://www.aspose.com/docs/display/wordsnet/LayoutEnumerator+class
Please check DocumentLayoutHelper project in Aspose.Words for .NET examples repository at GitHub. This sample demonstrates how to easily work with the layout elements of a document and access the pages, lines, spans etc.
Please read about specifying table and cell width from here:
http://www.aspose.com/docs/display/wordsnet/Specifying+Table+and+Cell+Widths
Please let us know if we can be of any further assistance.