DXRichEditRtfDocumentExporterOptions.ExportFinalParagraphMark Property
Gets or sets whether to add a final paragraph mark (the \par tag) to the exported content. This is a dependency property.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, DevExpress.Wpf.RichEdit
Declaration
Property Value
Type | Description |
---|---|
ExportFinalParagraphMark | A ExportFinalParagraphMark enumeration member. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to ExportFinalParagraphMark |
---|---|
DXRichEditDocumentExportOptions |
|
Remarks
If the last character of the selected range passed to the SubDocument.GetRtfText method is a carriage return, the resulting RTF text is misinterpreted by the SubDocument.InsertRtfText method so that this carriage return is lost.
To remedy the situation, use the ExportFinalParagraphMark option.
The ExportFinalParagraphMark option allows you to specify whether the \par tag should be added. To include the tag only if the selection contains the final paragraph mark, set the option to the ExportFinalParagraphMark.SelectedOnly value.