com.aspose.slides
Class TagExCollection

java.lang.Object
  extended by com.aspose.slides.TagsEx
      extended by com.aspose.slides.TagExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, java.lang.Iterable

public final class TagExCollection
extends TagsEx
implements com.aspose.ms.System.Collections.ICollection

Represents the collection of tags (user defined pairs of strings)


Method Summary
 int add(java.lang.String name, java.lang.String value)
           Adds a new tag to collection.
 void clear()
           Removes all tags from the collection.
 boolean contains(java.lang.String name)
           Determines whether the collection contains a specific name.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection into the specified array.
 java.lang.String get_Item(java.lang.String name)
           Returns or sets a key and a value pair of a tag.
 java.lang.String getByIndex(int index)
           Returns value of a tag at the specified index.
 int getCount()
           Returns a number of tags in the collectoin.
 java.lang.String getKey(int index)
           Returns key of a tag at the specified index.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 int indexOfKey(java.lang.String name)
           Returns the zero-based index of the specified key in the collection.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator iterator()
           Returns an enumerator for the entire collection.
 void remove(java.lang.String name)
           Removes the tag with a specified name from the collection.
 void removeAt(int index)
           Removes the tag at the specified index.
 void set_Item(java.lang.String name, java.lang.String value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection into the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection
Parameters:
array - Array to fill.
index - Starting position in target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe).

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection

iterator

public com.aspose.ms.System.Collections.IEnumerator iterator()

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable
Specified by:
iterator in interface java.lang.Iterable

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection

getCount

public int getCount()
Description copied from class: TagsEx

Returns a number of tags in the collectoin.

Overrides:
getCount in class TagsEx

add

public int add(java.lang.String name,
               java.lang.String value)
Description copied from class: TagsEx

Adds a new tag to collection.

Overrides:
add in class TagsEx
Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
The index of the added tag.

remove

public void remove(java.lang.String name)
Description copied from class: TagsEx

Removes the tag with a specified name from the collection.

Overrides:
remove in class TagsEx
Parameters:
name - The name of tag to remove.

indexOfKey

public int indexOfKey(java.lang.String name)
Description copied from class: TagsEx

Returns the zero-based index of the specified key in the collection.

Overrides:
indexOfKey in class TagsEx
Parameters:
name - The name to locate in the collection.
Returns:
The zero-based index of key, if key is found in the collection; otherwise, -1.

contains

public boolean contains(java.lang.String name)
Description copied from class: TagsEx

Determines whether the collection contains a specific name.

Overrides:
contains in class TagsEx
Parameters:
name - The key to locate.
Returns:
True if the collection contains an tag with the specified key; otherwise, false.

removeAt

public void removeAt(int index)
Description copied from class: TagsEx

Removes the tag at the specified index.

Overrides:
removeAt in class TagsEx
Parameters:
index - The zero-based index of the tag to remove.

clear

public void clear()
Description copied from class: TagsEx

Removes all tags from the collection.

Overrides:
clear in class TagsEx

getByIndex

public java.lang.String getByIndex(int index)
Description copied from class: TagsEx

Returns value of a tag at the specified index.

Overrides:
getByIndex in class TagsEx
Parameters:
index - Index of a tag to return.
Returns:
Value of a tag.

getKey

public java.lang.String getKey(int index)
Description copied from class: TagsEx

Returns key of a tag at the specified index.

Overrides:
getKey in class TagsEx
Parameters:
index - Index of a tag to return.
Returns:
Key of a tag.

get_Item

public java.lang.String get_Item(java.lang.String name)
Description copied from class: TagsEx

Returns or sets a key and a value pair of a tag.

Overrides:
get_Item in class TagsEx
Parameters:
name - Key of a tag.
Returns:
Value of a tag.

set_Item

public void set_Item(java.lang.String name,
                     java.lang.String value)
Overrides:
set_Item in class TagsEx