Reputation: 12709
I'm using a RichTextBox control. I need to get the formatted text(not the plain text) from the code behind. How can I do this?
I'm using the control in a email template
Upvotes: 0
Views: 859
Reputation: 108957
just use freeTextBox.Text. According to documentation, the Text property Gets or sets the HTML which should have the all the formatting.
freeTextBox.Text
Upvotes: 2
Reputation: 22076
Try this
string s = richTextBox.Rtf;