com.aspose.slides
Interface ITagCollection

All Superinterfaces:
com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,java.lang.String>>, IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,java.lang.String>>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,java.lang.String>>, java.lang.Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,java.lang.String>>
All Known Implementing Classes:
TagCollection

public interface ITagCollection
extends IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,java.lang.String>>


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.
 java.lang.String get_Item(java.lang.String name)
           Returns or sets a key and a value pair of a tag.
 java.lang.String getNameByIndex(int index)
           Returns key of a tag at the specified index.
 java.lang.String[] getNamesOfTags()
           
 java.lang.String getValueByIndex(int index)
           Returns value of a tag at the specified index.
 int indexOfName(java.lang.String name)
           Returns the zero-based index of the specified key in the 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)
           Returns or sets a key and a value pair of a tag.
 
Methods inherited from interface com.aspose.slides.IGenericCollection
copyTo, getSyncRoot, isSynchronized, size
 
Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable
iterator
 

Method Detail

add

int add(java.lang.String name,
        java.lang.String value)

Adds a new tag to collection.

Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
The index of the added tag.

remove

void remove(java.lang.String name)

Removes the tag with a specified name from the collection.

Parameters:
name - The name of tag to remove.

indexOfName

int indexOfName(java.lang.String name)

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

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

boolean contains(java.lang.String name)

Determines whether the collection contains a specific name.

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

removeAt

void removeAt(int index)

Removes the tag at the specified index.

Parameters:
index - The zero-based index of the tag to remove.

clear

void clear()

Removes all tags from the collection.


getValueByIndex

java.lang.String getValueByIndex(int index)

Returns value of a tag at the specified index.

Parameters:
index - Index of a tag to return.
Returns:
Value of a tag.

getNameByIndex

java.lang.String getNameByIndex(int index)

Returns key of a tag at the specified index.

Parameters:
index - Index of a tag to return.
Returns:
Key of a tag.

getNamesOfTags

java.lang.String[] getNamesOfTags()

get_Item

java.lang.String get_Item(java.lang.String name)

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

Parameters:
name - Key of a tag.
Returns:
Value of a tag.

set_Item

void set_Item(java.lang.String name,
              java.lang.String value)

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

Parameters:
name - Key of a tag.


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.