Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

PlainTextDocumentImporterOptions.AutoDetectEncoding Property

Gets or sets whether the auto-detection of the loaded text encoding is enabled.

Namespace: DevExpress.XtraRichEdit.Import

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

[DefaultValue(true)]
public bool AutoDetectEncoding { get; set; }

Property Value

Type Default Description
Boolean **true**

true to switch the encoding autodetection on; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AutoDetectEncoding
WinForms Controls RichTextEditDocumentImportOptions
.PlainText.AutoDetectEncoding
Office File API RichEditDocumentImportOptions
.PlainText.AutoDetectEncoding

Remarks

This option is switched on by default, the correct encoding is determined automatically and the document is loaded using the corresponding charset. You can specify the encoding explicitly if required, using the PlainTextDocumentImporterOptions.Encoding property.

See Also