Skip to main content

DXRichEditHtmlDocumentExporterOptions.UseHtml5 Property

Gets or sets whether the exported HTML document conforms to the HTML5 specification. This is a dependency property.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v23.2.dll

NuGet Package: DevExpress.Wpf.RichEdit

Declaration

public bool UseHtml5 { get; set; }

Property Value

Type Description
Boolean

true, to use HTML5 syntax; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to UseHtml5
DXRichEditDocumentExportOptions
.HtmlOptions .UseHtml5

Remarks

The following changes are implemented when the UseHtml5 option is set to true to support HTML5 specification:

  • HTML5 DOCTYPE declaration is written as <!DOCTYPE html>
  • The <a id=”…”> attribute is used instead of the <a name=”…”> attribute in anchors (when exporting bookmarks).
See Also