How can I set the line spacing in all table cells contained in one section equal to 0?
1 Answer, 1 is accepted
answered on 17 Oct 2018, 12:46 PM
You can enumerate all Paragraph elements inside TableCells using the EnumerateChildrenOfType<T>() method, exposed by DocumentElementBase. Once you have the Paragraph instance, you can change its properties according to your needs. Here is an example in code demonstrating the suggested approach:
foreach (TableCell cell in this.document.EnumerateChildrenOfType<TableCell>())
foreach (Paragraph paragraph in cell.EnumerateChildrenOfType<Paragraph>())