コード例 #1
0
 public OpenXmlTableCellModel(OpenXmlTableCellModel containingCell, OpenXmlTablePropertiesModel tableProperties, TextWriter textWriter)
 {
     this._containingCell  = containingCell;
     this._tableProperties = tableProperties;
     this._textWriter      = textWriter;
     this._contents        = new List <ICellContent>();
     this._textWriter.Write("<w:tc>");
     this._cellProperties = new OpenXmlTableCellPropertiesModel();
 }
コード例 #2
0
 private void Flush()
 {
     if (this._cellProperties != null)
     {
         this.OverrideBorders();
         this.CellProperties.Write(this._textWriter);
         this._cellProperties = null;
     }
     foreach (ICellContent content in this._contents)
     {
         content.Write(this._textWriter);
     }
     this._contents = new List <ICellContent>();
 }