chamara
chamara

Reputation: 12709

Get formatted text from RichTextBox control

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

Answers (2)

Bala R
Bala R

Reputation: 108957

just use freeTextBox.Text. According to documentation, the Text property Gets or sets the HTML which should have the all the formatting.

Upvotes: 2

Amit
Amit

Reputation: 22076

Try this

string s = richTextBox.Rtf;

Upvotes: 2

Related Questions