Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Wpf.RichEdit

Declaration

public ExportFinalParagraphMark ExportFinalParagraphMark { get; set; }

Property Value

Type Description
ExportFinalParagraphMark

A ExportFinalParagraphMark enumeration member.

Available values:

Name Description
Always

Always adds the ‘\par’ tag to the end of exported RTF content.

Never

Never adds the ‘\par’ tag to the end of exported RTF content.

SelectedOnly

Adds the ‘\par’ tag to the end of exported RTF content if the last character in the selection being exported is the carriage return.

Property Paths

You can access this nested property as listed below:

Object Type Path to ExportFinalParagraphMark
DXRichEditDocumentExportOptions
.RtfOptions .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