public void visit(TDocumentText txt) { StringBuilder CHTML = new StringBuilder(txt.Text); if (txt.Bold) { CHTML.Insert(0, "<B>"); CHTML.Append("</B>"); } if (txt.Italic) { CHTML.Insert(0, "<I>"); CHTML.Append("</I>"); } if (txt.Italic) { CHTML.Insert(0, "<U>"); CHTML.Append("</U>"); } if (txt.Preformatted) { CHTML.Insert(0, "<PRE>"); CHTML.Append("</PRE>"); } if (txt.Center) { CHTML.Insert(0, "<CENTER>"); CHTML.Append("</CENTER>"); } if (txt.Font) { if (txt.Color != null) { String str = "<font color="; str += txt.Color; str += ">"; CHTML.Insert(0, str); CHTML.Append("</font>"); } } document.Append(CHTML.ToString()); }
public void visit(TDocumentText txt) { table_temp.AddCell(txt.Text); }