Document.HtmlText Property
Gets or sets the document content as HTML text.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v14.2.Core.dll
#Declaration
#Property Value
Type | Description |
---|---|
String | A string containing the text of the document in HTML format. |
#Remarks
Use the RichEditControl.SaveDocumentAs method to save the document in HTML format. The HtmlText method constructs the HTML document with external content - e.g. images - replaced with the name placeholders numbered in consecutive order. That is, images are named img1.img etc.
The SubDocument.GetHtmlText method enables you to get the content of the specified document range in HTML format and handle external elements by specifying a custom UriProvider that supports the IUriProvider interface.
NOTE
Although the Document.