Back to Devexpress

RichEditDocumentServer.HtmlText Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-a275f9b0.md

latest2.6 KB
Original Source

RichEditDocumentServer.HtmlText Property

Gets or sets the content as HTML text.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public string HtmlText { get; set; }
vb
Public Property HtmlText As String

Property Value

TypeDescription
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

HtmlText

See Also

HTML Support Limitations and Troubleshooting in Word Processing Document API

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace