/** * Writes the content of this RtfRow * * @return A byte array with the content of this RtfRow */ public override byte[] Write() { MemoryStream result = new MemoryStream(); byte[] t; try { result.Write(t = WriteRowDefinitions(), 0, t.Length); for (int i = 0; i < this.cells.Count; i++) { RtfCell rtfCell = (RtfCell)this.cells[i]; result.Write(t = rtfCell.Write(), 0, t.Length); } result.Write(DELIMITER, 0, DELIMITER.Length); if (this.document.GetDocumentSettings().IsOutputTableRowDefinitionAfter()) { result.Write(t = WriteRowDefinitions(), 0, t.Length); } result.Write(ROW_END, 0, ROW_END.Length); result.WriteByte((byte)'\n'); } catch (IOException) { } return(result.ToArray()); }