officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-mailmergeoptions-ae45618d.md
Gets or sets the record index at which the merge finishes.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
int LastRecordIndex { get; set; }
Property LastRecordIndex As Integer
| Type | Description |
|---|---|
| Int32 |
The final record index.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the LastRecordIndex property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-control-mail-merge/CS/MailMerge/Form1.cs#L28
myMergeOptions.FirstRecordIndex = 1;
myMergeOptions.LastRecordIndex = 3;
myMergeOptions.MergeMode = MergeMode.NewSection;
winforms-richedit-use-images-in-mail-merge/CS/Form1.cs#L54
options.FirstRecordIndex = Math.Max(0, ((MergeSimpleDataForm)form).StartIndex - 1);
options.LastRecordIndex = Math.Min(NorthwindDataProvider.Categories.Rows.Count - 1, ((MergeSimpleDataForm)form).EndIndex - 1);
}
winforms-richedit-create-a-master-detail-report/CS/RichEditMasterDetailMailMerge/Form1.cs#L89
MailMergeOptions options = masterRichEdit.CreateMailMergeOptions();
options.LastRecordIndex = 4;
winforms-richedit-control-mail-merge/VB/MailMerge/Form1.vb#L25
myMergeOptions.FirstRecordIndex = 1
myMergeOptions.LastRecordIndex = 3
myMergeOptions.MergeMode = MergeMode.NewSection
winforms-richedit-use-images-in-mail-merge/VB/Form1.vb#L54
options.FirstRecordIndex = Math.Max(0, CType(form, MergeSimpleDataForm).StartIndex - 1)
options.LastRecordIndex = Math.Min(Categories.Rows.Count - 1, CType(form, MergeSimpleDataForm).EndIndex - 1)
ElseIf form.MergeRecords = MergeRecords.Current Then
winforms-richedit-create-a-master-detail-report/VB/RichEditMasterDetailMailMerge/Form1.vb#L83
Dim options As MailMergeOptions = masterRichEdit.CreateMailMergeOptions()
options.LastRecordIndex = 4
See Also