MailMergeDataSource
Represents a data source for performing mail merge operations in Telerik's document model.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class MailMergeDataSource : DependencyObject
Inheritance: objectMailMergeDataSource
Constructors
public MailMergeDataSource()
Fields
ItemsSourceProperty
DependencyProperty
public static readonly DependencyProperty ItemsSourceProperty
Properties
Gets the current item in the data source for the mail merge operation.
public object CurrentItem { get; }
Gets or sets the zero-based index of the current item in the mail merge data source.
public int CurrentItemIndex { get; }
The zero-based index of the current item. A value of -1 indicates that no item is currently selected.
Gets or sets the collection of data items that will be used as the source for the mail merge operation.
public IEnumerable ItemsSource { get; set; }
Methods
Retrieves the names of the columns available in the mail merge data source.
public string[] GetColumnNames()
string[]
An array of strings containing the names of the columns.
Moves the cursor to the first element in the Mail Merge data source.
public bool MoveToFirst()
True if the cursor was successfully moved to the first element; otherwise, false.
Moves the data source to the last record in the collection.
public bool MoveToLast()
True if the operation was successful; otherwise, false.
This method allows you to navigate to the last item of the mail merge data source.
Moves the data source to the next record, preparing it for the next data retrieval operation.
public bool MoveToNext()
A boolean value indicating whether the move was successful and there is a next record available.
Moves the data source cursor to the previous record in the mail merge data source.
public bool MoveToPrevious()
Returns a boolean value indicating whether the cursor was successfully moved to the previous record.
Events
public event EventHandler CurrentItemChanged
public event EventHandler ItemsSourceChanged