Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RichTextBox temphotfix = new RichTextBox();
- temphotfix.Font = new Font(temphotfix.Font.Name, 14);
- System.Windows.Documents.TextRange range = new System.Windows.Documents.TextRange(omschrijving.Document.ContentStart, omschrijving.Document.ContentEnd);
- temphotfix.Text = omschrijving_temp;
- string temp = temphotfix.Rtf;
- byte[] byteArray = Encoding.ASCII.GetBytes(temp);
- MemoryStream stream = new MemoryStream(byteArray);
- range.Load(stream, DataFormats.Rtf);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement