public static string LoadAndCopyToClipboard(string text, System.Drawing.Font font) { RtfConverter converter = new RtfConverter(); converter.Font = font; converter.Load(text); Clipboard.SetDataObject(new DataObject(DataFormats.Rtf, converter.Rtf)); return converter.Rtf; }
public static string Load(string text, System.Drawing.Font font) { RtfConverter converter = new RtfConverter(); converter.Font = font; return converter.Load(text); }