This is a migrated thread and some comments may be shown as answers.

Line Spacing in RadFlowDocument

1 Answer 97 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Omar
Top achievements
Rank 1
Omar asked on 15 Oct 2018, 12:09 AM

How can I set the line spacing in all table cells contained in one section equal to 0?

 

Regards

1 Answer, 1 is accepted

Sort by
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>())
    {
        paragraph.Spacing.LineSpacing = 1;
    }
}

Hope this is helpful.

Regards,
Tanya
Progress Telerik

Tags
WordsProcessing
Asked by
Omar
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or