RtfDocumentExporterOptions.ExportFinalParagraphMark Property
Enables you to add the ‘\par’ tag to the end of RTF content.
Namespace: DevExpress.XtraRichEdit.Export
Assembly: DevExpress.RichEdit.v19.1.Core.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
ExportFinalParagraphMark | **Always** | An ExportFinalParagraphMark enumeration member. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to ExportFinalParagraphMark |
---|---|---|
WinForms Controls | RichTextEditDocumentExportOptions |
|
Office File API | RichEditDocumentExportOptions |
|
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.