Skip to main content
.NET Framework 4.5.2+

RichEditDocumentServer.HtmlText Property

Gets or sets the content as HTML text.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v22.1.Core.dll


public string HtmlText { get; set; }

Property Value

Type Description

A string containing text in HTML format.


The HtmlText property returns the HTML document with images which are base64-encoded and embedded in the document body. This is the default behavior.

To get the HTML source that contains image references, use the SubDocument.GetHtmlText method. You should specify a custom UriProvider that provides a URI for each image. For example, it allows you to retain the original image URI when a document is loaded and then saved, using the OfficeImage.Uri property. See the How to: Retain the Image URI in HTML Document article for an use example .

Use the Document.HtmlText when operating at the document level, or the SubDocument.GetHtmlText, to retrieve a document range in HTML format.

For a list of supported HTML tags, see the HTML Tag Support document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the HtmlText property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.


See Also