请问word中表格的行高设置为最小值,里面填充大量文之后,怎么获取这行填充后的高度,如果直接获取不了,有其他间接途径获取吗?比如获取表格行里面每个单元格里面Paragraphs的高度,或者坐标都可以。
谢谢。
Document doc = new Document();
doc.LoadFromFile("test.docx", Spire.Doc.FileFormat.Docx2013);
//将Word文档以固定版式加载
FixedLayoutDocument layoutDoc = new FixedLayoutDocument(doc);
foreach(FixedLayoutPage page in layoutDoc.Pages)
{
FixedLayoutColumn column = page.Columns[0];
//获取表格单元格的行高
float height = column.Rows[0].Rectangle.Height;
}