The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RichEditDocumentExportOptions.PlainText Property

Provides access to options specific for export to plain text format.

Namespace: DevExpress.XtraRichEdit.Export

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

Declaration

public PlainTextDocumentExporterOptions PlainText { get; }
Public ReadOnly Property PlainText As PlainTextDocumentExporterOptions
public PlainTextDocumentExporterOptions PlainText { get; }
Public ReadOnly Property PlainText As PlainTextDocumentExporterOptions
public PlainTextDocumentExporterOptions PlainText { get; }
Public ReadOnly Property PlainText As PlainTextDocumentExporterOptions

Property Value

Type Description
PlainTextDocumentExporterOptions

A PlainTextDocumentExporterOptions object containing export settings.

Property Value

Type Description
PlainTextDocumentExporterOptions

A PlainTextDocumentExporterOptions object containing export settings.

Property Value

Type Description
PlainTextDocumentExporterOptions

A PlainTextDocumentExporterOptions object containing export settings.

Remarks

To access the PlainText property, use the Options | Export | PlainText notation.

Examples

Note

A complete sample project is available at Exploring plain text exporter options.

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