OdsoRecipientDataCollection Class |
Namespace: Aspose.Words.Settings
The OdsoRecipientDataCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() | OdsoRecipientDataCollection | Initializes a new instance of the OdsoRecipientDataCollection class |
Name | Description | |
---|---|---|
![]() ![]() | Count |
Gets the number of elements contained in the collection.
|
![]() ![]() | Item |
Gets or sets an item in this collection.
|
Name | Description | |
---|---|---|
![]() ![]() | Add |
Adds an object to the end of this collection.
|
![]() ![]() | Clear |
Removes all elements from this collection.
|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetEnumerator |
Returns an enumerator object that can be used to iterate over all items in the collection.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | RemoveAt |
Removes the element at the specified index.
|
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(MyDir + "Odso data.docx"); // Records in this collection that do not have the "Active" flag set to true will be excluded from the mail merge OdsoRecipientDataCollection odsoRecipientDataCollection = doc.MailMergeSettings.Odso.RecipientDatas; Assert.AreEqual(70, odsoRecipientDataCollection.Count); int index = 0; foreach (OdsoRecipientData data in odsoRecipientDataCollection) { Console.WriteLine($"Odso recipient data index #{index++}, will {(data.Active ? "" : "not ")}be imported upon mail merge."); Console.WriteLine($"\tColumn #{data.Column}"); Console.WriteLine($"\tHash code: {data.Hash}"); Console.WriteLine($"\tContents array length: {data.UniqueTag.Length}"); Assert.AreNotEqual(data, data.Clone()); }