Пример #1
0
        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");
        }
Пример #2
0
        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");
        }
Пример #3
0
        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";
        }