Exemple #1
0
 /// <summary>
 /// The text constructor
 /// <seealso cref="RTFExporter.RTFParagraph"/>
 /// <seealso cref="RTFExporter.RTFTextStyle"/>
 /// </summary>
 /// <param name="paragraph">The parent paragraph</param>
 /// <param name="content">The text content itself</param>
 /// <param name="style">A pre-configured style object</param>
 public RTFText(RTFParagraph paragraph, string content, RTFTextStyle style)
 {
     this.style   = style;
     this.content = content;
     paragraph.text.Add(this);
 }
Exemple #2
0
 /// <summary>
 /// The text constructor
 /// <seealso cref="RTFExporter.RTFParagraph"/>
 /// </summary>
 /// <param name="paragraph">The parent paragraph</param>
 /// <param name="content">The text content itself</param>
 public RTFText(RTFParagraph paragraph, string content)
 {
     style        = new RTFTextStyle(false, false, 12, "Calibri", new Color(0, 0, 0));
     this.content = content;
     paragraph.text.Add(this);
 }