public class MapiPropertyCollection extends Object implements com.aspose.ms.System.Collections.IDictionary
Represents the collection of MapiProperty items.
Constructor and Description |
---|
MapiPropertyCollection()
Creates a new instance of class MapiProperty.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long tag,
MapiProperty value)
Adds a MapiProperty item with specified tag.
|
void |
addItem(Object tag,
Object value)
Adds an element with the specified key and value to the collection.
|
void |
clear()
Removes all of the elements from the collection.
|
boolean |
contains(long tag)
Determines whether the collection contains the specified tag.
|
boolean |
contains(Object tag)
Determines whether the collection contains the specified tag.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the collection elements to a one-dimensional System.Array instance at the specified index.
|
MapiProperty |
get_Item(long tag)
Gets or sets the value associated with the specified key.
|
Object |
get_Item(Object tag)
Gets or sets the value associated with the specified key.
|
com.aspose.ms.System.Collections.ICollection |
getKeys()
Gets a System.Collections.ICollection containing the keys in the collection.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the collection.
|
com.aspose.ms.System.Collections.ICollection |
getValues()
Gets an System.Collections.ICollection containing the values in the collection.
|
boolean |
isFixedSize()
Gets a value indicating whether the collection has a fixed size.
|
boolean |
isReadOnly()
Gets a value indicating whether the collection is read only.
|
boolean |
isSynchronized()
Gets a value indicating whether access to the collection is synchronized (thread safe).
|
com.aspose.ms.System.Collections.IDictionaryEnumerator |
iterator()
iterator.
|
void |
remove(long tag)
Removes the element with the specified key from the collection.
|
void |
removeItem(Object tag)
Removes the element with the specified key from the collection.
|
void |
set_Item(long tag,
MapiProperty value)
Gets or sets the value associated with the specified key.
|
void |
set_Item(Object tag,
Object value)
Gets or sets the value associated with the specified key.
|
int |
size()
Gets the number of elements contained in the collection.
|
void |
sortKeys(Comparator<Long> comparator)
sortKeys.
|
public MapiPropertyCollection()
Creates a new instance of class MapiProperty.
public void add(long tag, MapiProperty value)
Adds a MapiProperty item with specified tag.
tag
- The property tag.value
- The property value.public void addItem(Object tag, Object value)
Adds an element with the specified key and value to the collection.
addItem
in interface com.aspose.ms.System.Collections.IDictionary
tag
- The tag key.value
- The value.public void clear()
Removes all of the elements from the collection.
clear
in interface com.aspose.ms.System.Collections.IDictionary
public boolean contains(Object tag)
Determines whether the collection contains the specified tag.
contains
in interface com.aspose.ms.System.Collections.IDictionary
tag
- The property tag.public boolean contains(long tag)
Determines whether the collection contains the specified tag.
tag
- The property tag.public boolean isFixedSize()
Gets a value indicating whether the collection has a fixed size.
isFixedSize
in interface com.aspose.ms.System.Collections.IDictionary
public boolean isReadOnly()
Gets a value indicating whether the collection is read only.
isReadOnly
in interface com.aspose.ms.System.Collections.IDictionary
public com.aspose.ms.System.Collections.ICollection getKeys()
Gets a System.Collections.ICollection containing the keys in the collection.
getKeys
in interface com.aspose.ms.System.Collections.IDictionary
ICollection
object.public void sortKeys(Comparator<Long> comparator)
sortKeys.
comparator
- a Comparator
object.public void removeItem(Object tag)
Removes the element with the specified key from the collection.
removeItem
in interface com.aspose.ms.System.Collections.IDictionary
tag
- The key tag of the element to remove.public void remove(long tag)
Removes the element with the specified key from the collection.
tag
- The key tag of the element to remove.public com.aspose.ms.System.Collections.ICollection getValues()
Gets an System.Collections.ICollection containing the values in the collection.
getValues
in interface com.aspose.ms.System.Collections.IDictionary
ICollection
object.public Object get_Item(Object tag)
Gets or sets the value associated with the specified key.
get_Item
in interface com.aspose.ms.System.Collections.IDictionary
tag
- The tag key whose value to get or set.public void set_Item(Object tag, Object value)
Gets or sets the value associated with the specified key.
set_Item
in interface com.aspose.ms.System.Collections.IDictionary
tag
- The tag key whose value to get or set.public MapiProperty get_Item(long tag)
Gets or sets the value associated with the specified key.
tag
- The tag key whose value to get or set.public void set_Item(long tag, MapiProperty value)
Gets or sets the value associated with the specified key.
The
- value associated with the specified key.tag
- The tag key whose value to get or set.public void copyTo(com.aspose.ms.System.Array array, int index)
Copies the collection elements to a one-dimensional System.Array instance at the specified index.
copyTo
in interface com.aspose.ms.System.Collections.ICollection
array
- The one-dimensional System.Array that is the destination of the System.Collections.DictionaryEntry objects copied from the collection. The System.Array must have zero-based indexing.index
- The zero-based index in array at which copying begins.public int size()
Gets the number of elements contained in the collection.
size
in interface com.aspose.ms.System.Collections.ICollection
public boolean isSynchronized()
Gets a value indicating whether access to the collection is synchronized (thread safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection
public Object getSyncRoot()
Gets an object that can be used to synchronize access to the collection.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection
Object
object.public com.aspose.ms.System.Collections.IDictionaryEnumerator iterator()
iterator.
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.