Back to Devexpress

RichEditDocumentExportOptions.Html Property

officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-richeditdocumentexportoptions-37e973bf.md

latest3.0 KB
Original Source

RichEditDocumentExportOptions.Html Property

Obtains options specific for export to HTML format.

Namespace : DevExpress.XtraRichEdit.Export

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public HtmlDocumentExporterOptions Html { get; }
vb
Public ReadOnly Property Html As HtmlDocumentExporterOptions

Property Value

TypeDescription
HtmlDocumentExporterOptions

An object that contains export settings.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

csharp
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

vb
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

RichEditDocumentExportOptions Members

DevExpress.XtraRichEdit.Export Namespace