Beispiel #1
0
        public IRow Add(string name, string text, string[] classes)
        {
            Cell cell = null;
            if (createsHeadersOnDefault)
                cell = new Header {Name = name, Text = text};
            else
                cell = new Cell {Name = name, Text = text};

            BindClasses(classes, cell);
            return Add(cell);
        }
Beispiel #2
0
 public IRow Add(string text, Action<ICell> constructor)
 {
     var result = new Cell();
     if (constructor.yes()) constructor(result);
     return Add(result);
 }
Beispiel #3
0
 public ITable AppendTitle(string title){
     int colCount = ColumnCount;
     var titleRow = new Row();
     titleRow.Classes.Add("title");
     var titleCell = new Cell {ColSpan = colCount, Text = title};
     titleCell.Styles["text-align"] = "center";
     titleRow.Add(titleCell);
     Body.Add(titleRow);
     return this;
 }