/// <summary> /// Writes the content of this RtfTable /// </summary> public override void WriteContent(Stream result) { if (!InHeader) { if (_offset != -1) { result.Write(RtfFont.FontSize, 0, RtfFont.FontSize.Length); byte[] t; result.Write(t = IntToByteArray(_offset), 0, t.Length); } result.Write(RtfParagraph.Paragraph, 0, RtfParagraph.Paragraph.Length); } for (int i = 0; i < _rows.Count; i++) { RtfElement re = (RtfElement)_rows[i]; re.WriteContent(result); } result.Write(RtfPhrase.ParagraphDefaults, 0, RtfPhrase.ParagraphDefaults.Length); }
/** * Writes the content of this RtfTable */ public override void WriteContent(Stream result) { if (!inHeader) { if (this.offset != -1) { result.Write(RtfFont.FONT_SIZE, 0, RtfFont.FONT_SIZE.Length); byte[] t; result.Write(t = IntToByteArray(this.offset), 0, t.Length); } result.Write(RtfParagraph.PARAGRAPH, 0, RtfParagraph.PARAGRAPH.Length); } for (int i = 0; i < this.rows.Count; i++) { RtfElement re = (RtfElement)this.rows[i]; re.WriteContent(result); } result.Write(RtfParagraph.PARAGRAPH_DEFAULTS, 0, RtfParagraph.PARAGRAPH_DEFAULTS.Length); }