Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditDocumentServer.HtmlText Property

Gets or sets the content as HTML text.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

public string HtmlText { get; set; }

#Property Value

Type Description
String

A string containing text in HTML format.

#Remarks

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.

#Implements

See Also