Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. RichTextBox temphotfix = new RichTextBox();
  2. temphotfix.Font = new Font(temphotfix.Font.Name, 14);
  3. System.Windows.Documents.TextRange range = new System.Windows.Documents.TextRange(omschrijving.Document.ContentStart, omschrijving.Document.ContentEnd);
  4. temphotfix.Text = omschrijving_temp;
  5. string temp = temphotfix.Rtf;
  6. byte[] byteArray = Encoding.ASCII.GetBytes(temp);
  7. MemoryStream stream = new MemoryStream(byteArray);
  8. range.Load(stream, DataFormats.Rtf);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement