Back to Devexpress

HtmlDocumentExporterOptions.Encoding Property

officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-htmldocumentexporteroptions-952ab00d.md

latest5.0 KB
Original Source

HtmlDocumentExporterOptions.Encoding Property

Gets or sets the character encoding used in an exported document.

Namespace : DevExpress.XtraRichEdit.Export

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[TypeConverter(typeof(EncodingConverter))]
public Encoding Encoding { get; set; }
vb
<TypeConverter(GetType(EncodingConverter))>
Public Property Encoding As Encoding

Property Value

TypeDescription
Encoding

A Encoding class representing the character encoding.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Encoding
RichEditDocumentExportOptions

.Html .Encoding

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Encoding 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.

winforms-richedit-build-a-mail-application/CS/RichEditSendMail/Form1.cs#L97

csharp
if (options != null) {
    options.Encoding = Encoding.UTF8;
}

winforms-richedit-export-the-document-into-an-outlook-mail-item/CS/Form1.cs#L73

csharp
if (options != null) {
    options.Encoding = Encoding.UTF8;
}

winforms-richedit-save-text-from-a-range-in-different-formats/CS/GetTextMethodsExample/Form1.cs#L87

csharp
new DevExpress.XtraRichEdit.Export.HtmlDocumentExporterOptions();
myExportOptions.Encoding = System.Text.Encoding.Unicode;

word-document-api-send-mail-merge-document-as-email/CS/RichEditMailMessageExporter.cs#L46

csharp
{
    options.Encoding = Encoding.UTF8;
}

winforms-richedit-build-a-mail-application/VB/RichEditSendMail/Form1.vb#L91

vb
If options IsNot Nothing Then
    options.Encoding = Encoding.UTF8
End If

winforms-richedit-export-the-document-into-an-outlook-mail-item/VB/Form1.vb#L72

vb
If options IsNot Nothing Then
    options.Encoding = Encoding.UTF8
End If

winforms-richedit-save-text-from-a-range-in-different-formats/VB/GetTextMethodsExample/Form1.vb#L67

vb
Dim myExportOptions As New DevExpress.XtraRichEdit.Export.HtmlDocumentExporterOptions()
myExportOptions.Encoding = System.Text.Encoding.Unicode

word-document-api-send-mail-merge-document-as-email/VB/RichEditMailMessageExporter.vb#L42

vb
If options IsNot Nothing Then
    options.Encoding = Encoding.UTF8
End If

See Also

HtmlDocumentExporterOptions Class

HtmlDocumentExporterOptions Members

DevExpress.XtraRichEdit.Export Namespace