PDFsharp & MigraDoc Foundation

Overlap Text in a table cell
Page 1 of 1

Author:  akhilrajau [ Fri Mar 01, 2019 6:34 am ]
Post subject:  Overlap Text in a table cell

I created a simple Table and have some 6 columns. Then i added one email address in the last column.
As the email address is longer the text overlap the cells and go outside.

Anyone help to solve this issue by wrapping the text or someway?

My Code:

         row = table.AddRow();
         row.Format.Alignment = ParagraphAlignment.Center;
         row.Cells[4].AddParagraph("Email: ");
         row.Cells[4].Format.Font.Bold = false;
         row.Cells[4].Format.Alignment = ParagraphAlignment.Left;
         row.Cells[4].VerticalAlignment = VerticalAlignment.Top;
         row.Cells[5].Format.Font.Bold = false;
         row.Cells[5].Format.Alignment = ParagraphAlignment.Left;
         row.Cells[5].VerticalAlignment = VerticalAlignment.Top;

Author:  TH-Soft [ Fri Mar 01, 2019 9:41 am ]
Post subject:  Re: Overlap Text in a table cell


Modify the e-mail address and insert soft hyphens or zero-width non-joiners at locations where you allow the address to split.
"@", "_" and "." are good candidates for pretty linebreaks, but you can simply insert a zero-width non-joiner after every character if you do not care where the linebreak occurs.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group