RichEditDocumentServer.HtmlText Property
Gets or sets the content as HTML text.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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.