Hi,
I've run into an issue with underlining a text span that is in a table cell. When I create the content of the cell by doing the following:
I've run into an issue with underlining a text span that is in a table cell. When I create the content of the cell by doing the following:
row = New TableRow
cell = New TableCell()
p = New Paragraph()
sp = New Span()
sp.Text = "Benefit Start"
sp.UnderlineType = UI.UnderlineType.Line
p.Inlines.Add(sp)
row.Cells.Add(cell)
table.Rows.Add(row)
The underline extends past the final character. See the attached 'underlineissue_richtextbox.jpg' for an example, this jpg also shows the same text/paragraph added to the section outside of a table and it works fine.
The problem is even worse when I export the document to a PDF as all the underlines are too wide. See the second attachment for an example.
Is there a work around for this issue or am I doing something wrong?