Aspose::Words::MailMerging::MappedDataFieldCollection class

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

MethodDescription
Add(const System::String&, const System::String&)Adds a new field mapping.
begin()
begin() const
cbegin() const
cend() const
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.
end()
end() const
get_Count()Gets the number of elements contained in the collection.
GetEnumerator() overrideReturns a dictionary enumerator object that can be used to iterate over all items in the collection.
GetType() const override
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.
Is(const System::TypeInfo&) const override
Remove(const System::String&)Removes a field mapping.
static Type()
virtualizeBeginConstIterator() const override
virtualizeBeginIterator() override
virtualizeEndConstIterator() const override
virtualizeEndIterator() override

Typedefs

TypedefDescription
const_iterator
iterator
iterator_holder_type
virtualized_iterator
virtualized_iterator_element

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