public class MailAddressCollection extends com.aspose.ms.System.Collections.ObjectModel.Collection<MailAddress>
Represents a collection of MailAddress objects.
| Constructor and Description |
|---|
MailAddressCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String addresses)
Add a list of e-mail addresses to the collection.
|
void |
addMailAddress(MailAddress address)
Add a
MailAddress to the collection. |
void |
addRange(Iterable<MailAddress> addresses)
Adds addresses to collection
|
void |
addRange(MailAddressCollection addresses)
Adds addresses to collection
|
void |
clear()
Removes all elements from the Collection.
|
protected void |
clearItems()
Removes all elements from the System.Collections.ObjectModel.Collection`1.
|
MailAddressCollection |
copy()
Copies this instance.
|
void |
insertItem(int index,
MailAddress item)
Inserts an element into the
System.Collections.ObjectModel.Collection`1 at the specified index. |
void |
removeAt(int index)
Removes the element at the specified index of the Collection.
|
protected void |
removeItem(int index)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1.
|
protected void |
setItem(int index,
MailAddress item)
Replaces the element at the specified index.
|
static MailAddressCollection |
to_MailAddressCollection(MailAddress address)
Performs an implicit conversion from
MailAddress to MailAddressCollection. |
static MailAddressCollection |
to_MailAddressCollection(String addresses)
Performs an implicit conversion from
String to MailAddressCollection. |
String |
toString()
Returns a
String that represents this instance. |
public static MailAddressCollection to_MailAddressCollection(MailAddress address)
Performs an implicit conversion from MailAddress to MailAddressCollection.
address - The address.public static MailAddressCollection to_MailAddressCollection(String addresses)
Performs an implicit conversion from String to MailAddressCollection.
addresses - The address list.public final MailAddressCollection copy()
Copies this instance.
public final void addMailAddress(MailAddress address)
Add a MailAddress to the collection.
address - The MailAddresspublic final void add(String addresses)
Add a list of e-mail addresses to the collection.
addresses - An address list.
Addresses must be separated with a comma character.public final void addRange(MailAddressCollection addresses)
Adds addresses to collection
addresses - Collection of mail addressespublic final void addRange(Iterable<MailAddress> addresses)
Adds addresses to collection
addresses - Enumeration of mail addressesprotected void setItem(int index,
MailAddress item)
Replaces the element at the specified index.
setItem in class com.aspose.ms.System.Collections.ObjectModel.Collection<MailAddress>index - The zero-based index of the element to replace.item - The new value for the element at the specified index. The value can be null for reference types.ArgumentOutOfRangeException - index is less than zero.
-or-
index is greater than P:System.Collections.ObjectModel.Collection`1.Count.public void insertItem(int index,
MailAddress item)
Inserts an element into the System.Collections.ObjectModel.Collection`1 at the specified index.
insertItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<MailAddress>insertItem in class com.aspose.ms.System.Collections.ObjectModel.Collection<MailAddress>index - The zero-based index at which item should be inserted.item - The object to insert. The value can be null for reference types.ArgumentOutOfRangeException - index is less than zero.
-or-
index is greater than P:System.Collections.ObjectModel.Collection`1.Count.protected void clearItems()
Removes all elements from the System.Collections.ObjectModel.Collection`1.
protected void removeItem(int index)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1.
index - The zero-based index of the element to remove.public void clear()
Removes all elements from the Collection.
clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress>clear in class com.aspose.ms.System.Collections.ObjectModel.Collection<MailAddress>public void removeAt(int index)
Removes the element at the specified index of the Collection.
removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<MailAddress>removeAt in class com.aspose.ms.System.Collections.ObjectModel.Collection<MailAddress>index - The zero-based index of the element to remove.Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.