Ankush Madankar
Ankush Madankar

Reputation: 3834

How to display html text in DevExpress.XtraEditors.RichTextEdit?

I am having DevExpress.XtraEditors.RichTextEdit control in which I want to display html text as readable text. But it show html text as it is with html tag.

How to display html text in DevExpress.XtraEditors.RichTextEdit?

Upvotes: -1

Views: 2498

Answers (1)

DmitryG
DmitryG

Reputation: 17848

I suggest you use the RepositoryItemRichTextEdit.DocumentFormat property in the following manner:

richTextEdit.Properties.DocumentFormat = DevExpress.XtraRichEdit.DocumentFormat.Html;
richTextEdit.Text = htmlString;

Upvotes: 2

Related Questions