How can I set the line spacing in all table cells contained in one section equal to 0?
Regards
1 Answer, 1 is accepted
0
Accepted
Tanya
Telerik team
answered on 17 Oct 2018, 12:46 PM
Hi Omar,
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>())