Aspose::Words::MailMerging::MappedDataFieldCollection class
Contents
[
Hide
]MappedDataFieldCollection class
Allows to automatically map between names of fields in your data source and names of mail merge fields in the document. To learn more, visit the Mail Merge and Reporting documentation article.
class MappedDataFieldCollection : public System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String, System::String>>
Methods
| Method | Description |
|---|---|
| Add(const System::String &, const System::String &) | Adds a new field mapping. |
| Clear() | Removes all elements from the collection. |
| ContainsKey(const System::String &) | Determines whether a mapping from the specified field in the document exists in the collection. |
| ContainsValue(const System::String &) | Determines whether a mapping from the specified field in the data source exists in the collection. |
| GetEnumerator() override | Returns a dictionary enumerator object that can be used to iterate over all items in the collection. |
| Remove(const System::String &) | Removes a field mapping. |
| get_Count() | Gets the number of elements contained in the collection. |
| idx_get(const System::String &) | Gets or sets the name of the field in the data source associated with the specified mail merge field. |
| idx_set(const System::String &, const System::String &) | Gets or sets the name of the field in the data source associated with the specified mail merge field. |
Typedefs
| Typedef | Description |
|---|---|
| const_iterator | Const iterator type. |
| iterator | Iterator type. |
| iterator_holder_type | A collection type whose iterator types is used as iterator types in the current collection. |
| virtualized_iterator | Virtualized type. |
| virtualized_iterator_element | Virtualized element type. |
Remarks
This is implemented as a collection of string keys into string values. The keys are the names of mail merge fields in the document and the values are the names of fields in your data source.
See Also
- Namespace Aspose::Words::MailMerging
- Library Aspose.Words for C++