Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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

[DefaultValue(ExportFinalParagraphMark.Always)]
public ExportFinalParagraphMark ExportFinalParagraphMark { get; set; }

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
.Rtf.ExportFinalParagraphMark
Office File API RichEditDocumentExportOptions
.Rtf.ExportFinalParagraphMark

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.

See Also