public virtual string TableCell(string content, TableCellFlags flags) { var type = flags.Header ? "th" : "td"; var tag = !string.IsNullOrEmpty(flags.Align) ? $"<{type} style='text-align:{flags.Align}'>" : $"<{type}>"; return(tag + content + $"</{type}>\n"); }
public virtual string TableCell(string content, TableCellFlags flags) { var type = flags.Header ? "th" : "td"; var tag = !String.IsNullOrEmpty(flags.Align) ? "<" + type + " style=\"text-align:" + flags.Align + "\">" : "<" + type + ">"; return(tag + content + "</" + type + ">\n"); }
public virtual string TableCell(string content, TableCellFlags flags) { var type = flags.Header ? "th" : "td"; var tag = !String.IsNullOrEmpty(flags.Align) ? "<" + type + " style=\"text-align:" + flags.Align + "\">" : "<" + type + ">"; return tag + content + "</" + type + ">\n"; }