Aspose::Email::PersonalInfo::PostalAddressList Class Reference

List of postal addresses for a contact. More...

Inherits System::Collections::Generic::IList< System::SharedPtr< Aspose::Email::PersonalInfo::PostalAddress > >.

Public Member Functions

System::SharedPtr< PostalAddressget_WorkAddress ()
 Default work address More...
 
void set_WorkAddress (System::SharedPtr< PostalAddress > value)
 Default work address More...
 
System::SharedPtr< PostalAddressget_OtherAddress ()
 Default other address More...
 
void set_OtherAddress (System::SharedPtr< PostalAddress > value)
 Default other address More...
 
System::SharedPtr< PostalAddressget_HomeAddress ()
 Default home address More...
 
void set_HomeAddress (System::SharedPtr< PostalAddress > value)
 Default home address More...
 
bool get_IsReadOnly () const override
 Gets a value indicating whether the list is read-only. More...
 
int32_t get_Count () const override
 Gets the number of elements contained in the T:System::Collections::ICollection. More...
 
void Add (const System::SharedPtr< PostalAddress > &value) override
 Adds an item to the list. More...
 
void Insert (int32_t index, const System::SharedPtr< PostalAddress > &value) override
 Inserts an item to the list at the specified index. More...
 
System::SharedPtr< PostalAddressidx_get (int32_t index) const override
 Gets the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< PostalAddress > value) override
 Sets the element at the specified index. More...
 
bool Contains (const System::SharedPtr< PostalAddress > &value) const override
 Determines whether the list contains a specific value. More...
 
void Clear () override
 Removes all items from the list. More...
 
int32_t IndexOf (const System::SharedPtr< PostalAddress > &value) const override
 Determines the index of a specific item in the list. More...
 
bool Remove (const System::SharedPtr< PostalAddress > &value) override
 Removes the first occurrence of a specific object from the list. More...
 
void RemoveAt (int32_t index) override
 Removes the list item at the specified index. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< PostalAddress >> array, int32_t index) override
 Copies the elements to an array, starting at a particular array index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< PostalAddress > > > GetEnumerator () override
 Returns an enumerator that iterates through a collection. More...
 
 PostalAddressList ()
 

Protected Member Functions

virtual ~PostalAddressList ()
 

Detailed Description

List of postal addresses for a contact.

Constructor & Destructor Documentation

◆ PostalAddressList()

Aspose::Email::PersonalInfo::PostalAddressList::PostalAddressList ( )

◆ ~PostalAddressList()

virtual Aspose::Email::PersonalInfo::PostalAddressList::~PostalAddressList ( )
protectedvirtual

Member Function Documentation

◆ Add()

void Aspose::Email::PersonalInfo::PostalAddressList::Add ( const System::SharedPtr< PostalAddress > &  value)
override

Adds an item to the list.

Parameters
valueThe object to add to the list.
Returns
The position into which the new element was inserted.

◆ Clear()

void Aspose::Email::PersonalInfo::PostalAddressList::Clear ( )
override

Removes all items from the list.

◆ Contains()

bool Aspose::Email::PersonalInfo::PostalAddressList::Contains ( const System::SharedPtr< PostalAddress > &  value) const
override

Determines whether the list contains a specific value.

Parameters
valueThe object to locate in the list.
Returns
true if the object is found in the list; otherwise, false.

◆ CopyTo()

void Aspose::Email::PersonalInfo::PostalAddressList::CopyTo ( System::ArrayPtr< System::SharedPtr< PostalAddress >>  array,
int32_t  index 
)
override

Copies the elements to an array, starting at a particular array index.

Parameters
arrayThe one-dimensional array that is the destination of the elements copied from collections. The array must have zero-based indexing.
indexThe zero-based index in array at which copying begins.

◆ get_Count()

int32_t Aspose::Email::PersonalInfo::PostalAddressList::get_Count ( ) const
override

Gets the number of elements contained in the T:System::Collections::ICollection.

Returns
The number of elements contained in the T:System::Collections::ICollection.

◆ get_HomeAddress()

System::SharedPtr<PostalAddress> Aspose::Email::PersonalInfo::PostalAddressList::get_HomeAddress ( )

Default home address

◆ get_IsReadOnly()

bool Aspose::Email::PersonalInfo::PostalAddressList::get_IsReadOnly ( ) const
override

Gets a value indicating whether the list is read-only.

Returns
true if the list is read-only; otherwise, false.

◆ get_OtherAddress()

System::SharedPtr<PostalAddress> Aspose::Email::PersonalInfo::PostalAddressList::get_OtherAddress ( )

Default other address

◆ get_WorkAddress()

System::SharedPtr<PostalAddress> Aspose::Email::PersonalInfo::PostalAddressList::get_WorkAddress ( )

Default work address

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<PostalAddress> > > Aspose::Email::PersonalInfo::PostalAddressList::GetEnumerator ( )
override

Returns an enumerator that iterates through a collection.

Returns
An T:System::Collections::IEnumerator object that can be used to iterate through the collection.

◆ idx_get()

System::SharedPtr<PostalAddress> Aspose::Email::PersonalInfo::PostalAddressList::idx_get ( int32_t  index) const
override

Gets the element at the specified index.

Parameters
indexThe zero-based index of the element to get or set.
Returns
The element at the specified index.

◆ idx_set()

void Aspose::Email::PersonalInfo::PostalAddressList::idx_set ( int32_t  index,
System::SharedPtr< PostalAddress value 
)
override

Sets the element at the specified index.

Parameters
indexThe zero-based index of the element to get or set.
valueThe element at the specified index.

◆ IndexOf()

int32_t Aspose::Email::PersonalInfo::PostalAddressList::IndexOf ( const System::SharedPtr< PostalAddress > &  value) const
override

Determines the index of a specific item in the list.

Parameters
valueThe T:System::Object to locate in the list.
Returns
The index of value if found in the list; otherwise, -1.

◆ Insert()

void Aspose::Email::PersonalInfo::PostalAddressList::Insert ( int32_t  index,
const System::SharedPtr< PostalAddress > &  value 
)
override

Inserts an item to the list at the specified index.

Parameters
indexThe zero-based index at which value should be inserted.
valueThe T:System::Object to insert into the list.

◆ Remove()

bool Aspose::Email::PersonalInfo::PostalAddressList::Remove ( const System::SharedPtr< PostalAddress > &  value)
override

Removes the first occurrence of a specific object from the list.

Parameters
valueThe T:System::Object to remove from the list.

◆ RemoveAt()

void Aspose::Email::PersonalInfo::PostalAddressList::RemoveAt ( int32_t  index)
override

Removes the list item at the specified index.

Parameters
indexThe zero-based index of the item to remove.

◆ set_HomeAddress()

void Aspose::Email::PersonalInfo::PostalAddressList::set_HomeAddress ( System::SharedPtr< PostalAddress value)

Default home address

◆ set_OtherAddress()

void Aspose::Email::PersonalInfo::PostalAddressList::set_OtherAddress ( System::SharedPtr< PostalAddress value)

Default other address

◆ set_WorkAddress()

void Aspose::Email::PersonalInfo::PostalAddressList::set_WorkAddress ( System::SharedPtr< PostalAddress value)

Default work address