Пример #1
0
 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;
 }
Пример #2
0
 public static string Load(string text, System.Drawing.Font font)
 {
     RtfConverter converter = new RtfConverter();
     converter.Font = font;
     return converter.Load(text);
 }