コード例 #1
0
ファイル: RtfCell.cs プロジェクト: hjgode/iTextSharpCF
 /**
 * Create a new <code>RtfCell</code>.
 *
 * @param writer The <code>RtfWriter</code> that this <code>RtfCell</code> belongs to
 * @param mainTable The <code>RtfTable</code> that created the
 * <code>RtfRow</code> that created the <code>RtfCell</code> :-)
 */
 public RtfCell(RtfWriter writer, RtfTable mainTable)
     : base()
 {
     this.writer = writer;
     this.mainTable = mainTable;
 }
コード例 #2
0
 /**
  * Create a new <code>RtfRow</code>.
  *
  * @param writer The <code>RtfWriter</code> that this <code>RtfRow</code> belongs to
  * @param mainTable The <code>RtfTable</code> that created this
  * <code>RtfRow</code>
  */
 public RtfRow(RtfWriter writer, RtfTable mainTable) : base()
 {
     this.writer    = writer;
     this.mainTable = mainTable;
 }
コード例 #3
0
ファイル: RtfWriter.cs プロジェクト: hjgode/iTextSharpCF
 /**
 * Write a <code>Table</code>.
 *
 * @param table The <code>table</code> to be written
 * @param outp The <code>MemoryStream</code> to write to
 *
 * Currently no nesting of tables is supported. If a cell contains anything but a Cell Object it is ignored.
 *
 * @throws IOException
 * @throws DocumentException
 */
 private void WriteTable(Table table, MemoryStream outp)
 {
     inTable = true;
     table.Complete();
     RtfTable rtfTable = new RtfTable(this);
     rtfTable.ImportTable(table, pageWidth - marginLeft - marginRight);
     rtfTable.WriteTable(outp);
     inTable = false;
 }