Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditDocumentExportOptions.PlainText Property

Obtains options specific for export to plain text format.

Namespace: DevExpress.XtraRichEdit.Export

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

public PlainTextDocumentExporterOptions PlainText { get; }

#Property Value

Type Description
PlainTextDocumentExporterOptions

An object that contains export settings.

#Property Paths

You can access this nested property as listed below:

Object Type Path to PlainText
RichEditControlOptionsBase
.Export .PlainText

#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");
See Also