Exemple #1
0
 public static RTFBuilder Underline(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\ul " + text.ToString() + "\\ul0}"
     });
 }
Exemple #2
0
 public RTFBuilder Replace(string text, RTFBuilder res)
 {
     return(new RTFBuilder()
     {
         Internal = new StringBuilder(Internal.ToString().Replace(text, res.ToString()))
     });
 }
Exemple #3
0
 public static RTFBuilder Colored(RTFBuilder text, ColorTable color)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\cf" + ((int)color).ToString() + " " + text.ToString() + "\\cf0}"
     });
 }
Exemple #4
0
 public static RTFBuilder Strike(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\strike " + text.ToString() + "\\strike0}"
     });
 }
Exemple #5
0
 public static RTFBuilder Italic(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\i " + text.ToString() + "\\i0}"
     });
 }
Exemple #6
0
 public static RTFBuilder Bold(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\b " + text.ToString() + "\\b0}"
     });
 }
Exemple #7
0
 public static RTFBuilder RightAligned(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\qr " + text.ToString() + "\\qr0}"
     });
 }
Exemple #8
0
 public static RTFBuilder BackColored(RTFBuilder text, ColorTable color)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\chcbpat" + ((int)color).ToString()
                       + "\\cb" + ((int)color).ToString()
                       + "\\highlight" + ((int)color).ToString()
                       + " " + text.ToString() + "\\chcbpat0\\cb0\\hightlight0}"
     });
 }
Exemple #9
0
 public RTFBuilder Append(RTFBuilder builder)
 {
     Internal.Append(builder.ToString());
     return(this);
 }