コード例 #1
0
 public static RTFBuilder Underline(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\ul " + text.ToString() + "\\ul0}"
     });
 }
コード例 #2
0
 public RTFBuilder Replace(string text, RTFBuilder res)
 {
     return(new RTFBuilder()
     {
         Internal = new StringBuilder(Internal.ToString().Replace(text, res.ToString()))
     });
 }
コード例 #3
0
 public static RTFBuilder Colored(RTFBuilder text, ColorTable color)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\cf" + ((int)color).ToString() + " " + text.ToString() + "\\cf0}"
     });
 }
コード例 #4
0
 public static RTFBuilder Strike(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\strike " + text.ToString() + "\\strike0}"
     });
 }
コード例 #5
0
 public static RTFBuilder Italic(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\i " + text.ToString() + "\\i0}"
     });
 }
コード例 #6
0
 public static RTFBuilder Bold(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\b " + text.ToString() + "\\b0}"
     });
 }
コード例 #7
0
 public static RTFBuilder RightAligned(RTFBuilder text)
 {
     return(new RTFBuilder()
     {
         InternalStr = "{\\qr " + text.ToString() + "\\qr0}"
     });
 }
コード例 #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}"
     });
 }
コード例 #9
0
 public RTFBuilder Append(RTFBuilder builder)
 {
     Internal.Append(builder.ToString());
     return(this);
 }