protected string CreateCell(string TableContents, TableCellInfo CellInfo)
 {
     return(string.Format("<td bgcolor=\'{0}\' colspan=\'{1}\' {2} {3}> {4}</td>",
                          CellInfo.BackgroundColor,
                          CellInfo.CellColumnWidth,
                          CellInfo.CenterAlign ? "align=center" : "",
                          CellInfo.WithBorder ? string.Format(" style=\"{0}\"", CellInfo.BorderType) : "",
                          TableContents));
 }
 /// <summary>
 /// Add a new cell with any formatting applied.
 /// </summary>
 /// <param name="TableContents"></param>
 /// <param name="CellInfo"></param>
 /// <returns></returns>
 public HtmlBuilder AddNewCell(string TableContents, TableCellInfo CellInfo = null)
 {
     SB.Append(CreateCell(TableContents, CellInfo != null ? CellInfo : new TableCellInfo()));
     return(this);
 }