Skip to main content

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

string HtmlText { get; set; }

#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.SaveDocument method is available, you are advised against using it to save a document. The security policy system incorporated in Silverlight restricts file system access, so the SaveDocument method may cause exception in most scenarios.

See Also