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