PlainTextDocumentExporterOptions Class
Contains options used to save (export) the plain text document.
Namespace: DevExpress.XtraRichEdit.Export
Assembly: DevExpress.RichEdit.v20.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.WindowsDesktop.RichEdit.Core
Declaration
Remarks
Use the PlainTextDocumentExporterOptions class object in the following members:
- In the BeforeExport event handler.
- As the SubDocument.GetText method parameter.
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");
Implements
Inheritance
Object
ViewStatePersisterCore
BaseOptions
RichEditNotificationOptions
DocumentExporterOptions
PlainTextDocumentExporterOptions
See Also