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

RichEditMailMergeOptions.KeepLastParagraph Property

Specifies whether or not the last paragraph of the inserted document is kept in the resulting document.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v20.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

[DefaultValue(false)]
public bool KeepLastParagraph { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to retain the last paragraph of the inserted document; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to KeepLastParagraph
WinForms Controls SnapControlOptions
.MailMerge .KeepLastParagraph
RichEditControlOptions
.MailMerge .KeepLastParagraph
WPF Controls RichEditControlOptions
.MailMerge .KeepLastParagraph
Office File API RichEditControlOptionsBase
.MailMerge .KeepLastParagraph

Remarks

The KeepLastParagraph property specifies how the document is inserted in place of the DOCVARIABLE field if the Document.CalculateDocumentVariable event is properly handled.

To learn more, see the CalculateDocumentVariableEventArgs.KeepLastParagraph property description.

See Also