Exemple #1
0
 public TableContext(InterleavingWriter interleavingWriter, bool inHeaderFooter)
 {
     this._interleavingWriter = interleavingWriter;
     this._state = (State)(inHeaderFooter ? 1 : 0);
     this._startedInHeaderFooter = inHeaderFooter;
     this._depth = 0;
 }
 public TableContext(InterleavingWriter interleavingWriter, bool inHeaderFooter)
 {
     _interleavingWriter = interleavingWriter;
     _state = (inHeaderFooter ? State.InHeaderFooter : State.InBody);
     _startedInHeaderFooter = inHeaderFooter;
     _depth = 0;
 }
 public OpenXmlTableModel(OpenXmlTableModel containingTable, InterleavingWriter interleavingWriter, AutoFit autofit)
 {
     this._containingTable    = containingTable;
     this._interleavingWriter = interleavingWriter;
     this._interleavingWriter.TextWriter.Write("<w:tbl>");
     this._tableProperties = new OpenXmlTablePropertiesModel(autofit);
 }
 public OpenXmlTableRowModel(OpenXmlTableRowModel containingRow, InterleavingWriter interleavingWriter)
 {
     _containingRow      = containingRow;
     _interleavingWriter = interleavingWriter;
     interleavingWriter.TextWriter.Write("<w:tr>");
     _interleavingWriter.WriteInterleaver(delegate(int index, long location)
     {
         _rowProperties = new OpenXmlTableRowPropertiesModel(index, location);
         return(RowProperties);
     });
 }
        public OpenXmlTableRowModel(OpenXmlTableRowModel containingRow, InterleavingWriter interleavingWriter)
        {
            this._containingRow      = containingRow;
            this._interleavingWriter = interleavingWriter;
            interleavingWriter.TextWriter.Write("<w:tr>");
            InterleavingWriter interleavingWriter2 = this._interleavingWriter;

            InterleavingWriter.CreateInterleaver <OpenXmlTableRowPropertiesModel> createInterleaver = delegate(int index, long location)
            {
                this._rowProperties = new OpenXmlTableRowPropertiesModel(index, location);
                return(this.RowProperties);
            };
            interleavingWriter2.WriteInterleaver(createInterleaver);
        }