.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

PlainTextDocumentExporterOptions Class

Contains options used to save (export) the plain text document.

Namespace: DevExpress.XtraRichEdit.Export

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


public class PlainTextDocumentExporterOptions :


Use the PlainTextDocumentExporterOptions class object in the following members:


View Example

The following code snippet illustrates how to use the PlainTextDocumentExporterOptions object properties to achieve the following:

  • Include document fields in the exported text
  • Enclose fields and their results in the specified symbols
  • Set character encoding
richEditControl1.Options.Export.PlainText.ExportHiddenText = true;
richEditControl1.Options.Export.PlainText.FieldCodeStartMarker = "[<";
richEditControl1.Options.Export.PlainText.FieldCodeEndMarker = ">";
richEditControl1.Options.Export.PlainText.FieldResultEndMarker = "]";
richEditControl1.Options.Export.PlainText.Encoding = Encoding.GetEncoding("Windows-1252");

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PlainTextDocumentExporterOptions class.


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.


See Also