officefileapi-devexpress-dot-xtrarichedit-dot-export-dot-htmldocumentexporteroptions-952ab00d.md
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
[TypeConverter(typeof(EncodingConverter))]
public Encoding Encoding { get; set; }
<TypeConverter(GetType(EncodingConverter))>
Public Property Encoding As Encoding
| Type | Description |
|---|---|
| Encoding |
A Encoding class representing the character encoding.
|
You can access this nested property as listed below:
| Object Type | Path 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
if (options != null) {
options.Encoding = Encoding.UTF8;
}
winforms-richedit-export-the-document-into-an-outlook-mail-item/CS/Form1.cs#L73
if (options != null) {
options.Encoding = Encoding.UTF8;
}
winforms-richedit-save-text-from-a-range-in-different-formats/CS/GetTextMethodsExample/Form1.cs#L87
new DevExpress.XtraRichEdit.Export.HtmlDocumentExporterOptions();
myExportOptions.Encoding = System.Text.Encoding.Unicode;
word-document-api-send-mail-merge-document-as-email/CS/RichEditMailMessageExporter.cs#L46
{
options.Encoding = Encoding.UTF8;
}
winforms-richedit-build-a-mail-application/VB/RichEditSendMail/Form1.vb#L91
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
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
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
If options IsNot Nothing Then
options.Encoding = Encoding.UTF8
End If
See Also
HtmlDocumentExporterOptions Class