officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-richeditdocumentexportoptions-37e973bf.md
Obtains options specific for export to HTML format.
Namespace : DevExpress.XtraRichEdit.Export
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public HtmlDocumentExporterOptions Html { get; }
Public ReadOnly Property Html As HtmlDocumentExporterOptions
| Type | Description |
|---|---|
| HtmlDocumentExporterOptions |
An object that contains export settings.
|
You can access this nested property as listed below:
| Object Type | Path to Html |
|---|---|
| RichEditControlOptionsBase |
.Export .Html
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Html 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#L25
try {
string html = Control.Document.GetHtmlText(Control.Document.Selection, new CustomUriProvider(), richEditControl.Options.Export.Html);
htmlForClipboard = CF_HTMLHelper.GetHtmlClipboardFormat(html);
how-to-customize-copy-and-paste-commands/VB/CustomCommands.vb#L27
Try
Dim html As String = Control.Document.GetHtmlText(Control.Document.Selection, New CustomUriProvider(), richEditControl.Options.Export.Html)
htmlForClipboard = CF_HTMLHelper.GetHtmlClipboardFormat(html)
See Also
RichEditDocumentExportOptions Class