/// // Remark: You MUST know the number of columns when constructing a Table.
/// // The number of rows is not important.
/// Table table = new Table(3);
/// table.SetBorderWidth(1);
/// table.SetBorderColor(new Color(0, 0, 255));
/// table.SetPadding(5);
/// table.SetSpacing(5);
/// Cell cell = new Cell("header");
/// cell.SetHeader(true);
/// cell.SetColspan(3);
/// table.AddCell(cell);
/// table.EndHeaders();
/// cell = new Cell("example cell with colspan 1 and rowspan 2");
/// cell.SetRowspan(2);
/// cell.SetBorderColor(new Color(255, 0, 0));
/// table.AddCell(cell);
/// table.AddCell("1.1");
/// table.AddCell("2.1");
/// table.AddCell("1.2");
/// table.AddCell("2.2");
/// table.AddCell("cell test1");
/// cell = new Cell("big cell");
/// cell.SetRowspan(2);
/// cell.SetColspan(2);
/// table.AddCell(cell);
/// table.AddCell("cell test2");
///
///
/// The result of this code is a table:
/// /// header /// | ///||
---|---|---|
/// example cell with colspan 1 and rowspan 2 /// | ////// 1.1 /// | ////// 2.1 /// | ///
/// 1.2 /// | ////// 2.2 /// | ///|
/// cell test1 /// | ////// big cell /// | ///|
/// cell test2 /// | ///
/// /// The widths will be: a width of 50% for the first column, /// 25% for the second and third column. ////// float[] widths = {2, 1, 1}; /// table.SetWidths(widths) ///