Back to Devexpress

HtmlDocumentExporterOptions.UseHtml5 Property

officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-htmldocumentexporteroptions-dot-usehtml5.md

latest2.0 KB
Original Source

HtmlDocumentExporterOptions.UseHtml5 Property

Gets or sets whether the exported HTML conforms with HTML5 specification.

Namespace : DevExpress.XtraRichEdit.Export

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(false)]
public bool UseHtml5 { get; set; }
vb
<DefaultValue(False)>
Public Property UseHtml5 As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

True , to use HTML5 syntax; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseHtml5
RichEditDocumentExportOptions

.Html .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

HtmlDocumentExporterOptions Class

HtmlDocumentExporterOptions Members

DevExpress.XtraRichEdit.Export Namespace