com.aspose.slides
Class TagCollection

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

public final class TagCollection
extends Tags
implements com.aspose.ms.System.Collections.ICollection

Represents a collection of a tags.


Method Summary
 void add(java.lang.String name, java.lang.String value)
           Adds a tag with the specified name.
 void clear()
           Removes all tags.
 boolean contains(java.lang.String name)
           Determines whether the collection contains a tag with the specific name.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 java.lang.String get_Item(java.lang.String name)
           Gets and sets the tag associated with a specific name.
 int getCount()
           Gets the number of tags actually contained in the collection.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 java.lang.String getTagName(int index)
           Gets the tag name at the specified index of 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 the specified name from collection.
 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 to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection
Parameters:
array - Target array.
index - Starting index in the 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: Tags

Gets the number of tags actually contained in the collection.

Overrides:
getCount in class Tags

get_Item

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

Gets and sets the tag associated with a specific name.

Overrides:
get_Item in class Tags

set_Item

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

add

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

Adds a tag with the specified name.

Overrides:
add in class Tags
Parameters:
name - The name of the tag to add.
value - The value of the tag to add.

clear

public void clear()
Description copied from class: Tags

Removes all tags.

Overrides:
clear in class Tags

contains

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

Determines whether the collection contains a tag with the specific name.

Overrides:
contains in class Tags
Parameters:
name - The name of tag to locate in the collection.
Returns:
True if the collection contains a tag with the specified name.

getTagName

public java.lang.String getTagName(int index)
Description copied from class: Tags

Gets the tag name at the specified index of the collection.

Overrides:
getTagName in class Tags
Parameters:
index - The zero-based index of the tag name to get.
Returns:
The tag name at the specified index of the collection.

remove

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

Removes the tag with the specified name from collection.

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