/// <summary> /// Add a table to this container. /// </summary> /// <param name="rowCount">Number of rows in the table.</param> /// <param name="colCount">Number of columns in the table.</param> /// <param name="horizontalWidth">Horizontabl width (in points) of the table.</param> /// <param name="fontSize">The size of font used in this table. This is used to calculate margins.</param> /// <returns>Table begin added.</returns> public RtfTable addTable(int rowCount, int colCount, float horizontalWidth, float fontSize) { if (!_allowTable) { throw new Exception("Table is not allowed."); } RtfTable block = new RtfTable(rowCount, colCount, horizontalWidth, fontSize); addBlock(block); return(block); }
internal RtfTableCell(float width, int rowIndex, int colIndex, RtfTable parentTable) : base(true, false) { _width = width; _halign = Align.None; _valign = AlignVertical.Top; _borders = new Borders(); _mergeInfo = null; _rowIndex = rowIndex; _colIndex = colIndex; BackgroundColour = null; ParentTable = parentTable; }
/// <summary> /// Add a table to this container. /// </summary> /// <param name="rowCount">Number of rows in the table.</param> /// <param name="colCount">Number of columns in the table.</param> /// <param name="horizontalWidth">Horizontabl width (in points) of the table.</param> /// <param name="fontSize">The size of font used in this table. This is used to calculate margins.</param> /// <returns>Table begin added.</returns> public RtfTable addTable(int rowCount, int colCount, float horizontalWidth, float fontSize) { if (!_allowTable) { throw new Exception("Table is not allowed."); } RtfTable block = new RtfTable(rowCount, colCount, horizontalWidth, fontSize); addBlock(block); return block; }