officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-htmldocumentexporteroptions-008240b3.md
Gets or sets the root tag of the HTML document to start the export.
Namespace : DevExpress.XtraRichEdit.Export
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public ExportRootTag ExportRootTag { get; set; }
Public Property ExportRootTag As ExportRootTag
| Type | Description |
|---|---|
| ExportRootTag |
An ExportRootTag enumeration value specifying the HTML document tag.
|
Available values:
| Name | Description |
|---|---|
| Html |
Specifies the <HTML> tag as the root tag for export.
| | Body |
Specifies the <BODY> tag as the root tag for export.
|
You can access this nested property as listed below:
| Object Type | Path to ExportRootTag |
|---|---|
| RichEditDocumentExportOptions |
.Html .ExportRootTag
|
Specify the ExportRootTag and the HtmlDocumentExporterOptions.CssPropertiesExportType settings to perform the export to HTML, via the HtmlExporterBase.Export method.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ExportRootTag property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
how-to-customize-copy-and-paste-commands/CS/RichEditCustomCopyPaste/CustomCommands.cs#L22
richEditControl.Options.Export.Html.ExportRootTag = ExportRootTag.Html;
word-processing-customize-html-export/CS/Program.cs#L66
HtmlDocumentExporterOptions options = new HtmlDocumentExporterOptions();
options.ExportRootTag = htmlExportType;
options.CssPropertiesExportType = cssExportType;
how-to-customize-copy-and-paste-commands/VB/CustomCommands.vb#L24
richEditControl.Options.Export.Html.ExportRootTag = ExportRootTag.Html
word-processing-customize-html-export/VB/Program.vb#L64
Dim options As New HtmlDocumentExporterOptions()
options.ExportRootTag = htmlExportType
options.CssPropertiesExportType = cssExportType
See Also
HtmlDocumentExporterOptions Class