예제 #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);
 }