taglist-ag凯发旗舰厅



com.spire.presentation.collections
class taglist

java.lang.object
  extended by com.spire.presentation.collections.taglist
direct known subclasses:
tagcollection

public class taglist
extends java.lang.object

represents the collection of tags


constructor summary
taglist()
           
taglist( pptlist)
           
taglist( tagsdoc)
           
taglist( progtags)
           
 
method summary
 int append(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)
          indicates whether the collection contains a specific name.
 java.lang.string get(java.lang.string name)
          gets or sets a key and a value pair of a tag.
 java.lang.string getbyind(int index)
          gets value of a tag at the specified index.
 int getcount()
          gets a number of tags in the collectoin.
 java.lang.string getkey(int index)
          gets key of a tag at the specified index.
 int indexofkey(java.lang.string name)
          gets 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
 
constructor detail

taglist

public taglist()

taglist

public taglist( tagsdoc)

taglist

public taglist( pptlist)

taglist

public taglist( progtags)
method detail

getcount

public int getcount()
gets a number of tags in the collectoin.
returns:

append

public int append(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

public void remove(java.lang.string name)
removes the tag with a specified name from the collection.
parameters:
name - the name of tag to remove

indexofkey

public int indexofkey(java.lang.string name)
gets 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

public boolean contains(java.lang.string name)
indicates 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

public void removeat(int index)
removes the tag at the specified index
parameters:
index - the zero-based index of the tag to remove

clear

public void clear()
removes all tags from the collection.

getbyind

public java.lang.string getbyind(int index)
gets value of a tag at the specified index.
parameters:
index - index of a tag to return
returns:
value of a tag.

getkey

public java.lang.string getkey(int index)
gets key of a tag at the specified index.
parameters:
index - index of a tag to return.
returns:
key of a tag.

get

public java.lang.string get(java.lang.string name)
gets or sets a key and a value pair of a tag.
parameters:
name - key of a tag.
returns:
value of a tag.


网站地图