bookmarkcollection-ag凯发旗舰厅



com.spire.doc.collections
class bookmarkcollection

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.collections.collectionex
          extended by com.spire.doc.collections.bookmarkcollection
all implemented interfaces:
java.lang.iterable

public class bookmarkcollection
extends collectionex

a collection of bookmark objects that represent the bookmarks in the document.


method summary
 void clear()
          removes all bookmarks from the document.
 bookmark findbyname(java.lang.string name)
          finds bookmark object by specified name
 bookmark get(int index)
          gets the bookmark at the specified index.
 bookmark get(java.lang.string name)
          gets the bookmark with the specified name.
 void remove(bookmark bookmark)
          removes the specified bookmark.
 void removeat(int index)
          removes a bookmark at the specified index.
 
methods inherited from class com.spire.doc.collections.collectionex
getcount, iterator
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
method detail

get

public bookmark get(java.lang.string name)
gets the bookmark with the specified name.
parameters:
name - bookmark name
returns:
bookmark object

get

public bookmark get(int index)
gets the bookmark at the specified index.
parameters:
index - index
returns:
bookmark object

findbyname

public bookmark findbyname(java.lang.string name)
finds bookmark object by specified name
parameters:
name - the bookmark name
returns:
bookmark object

removeat

public void removeat(int index)
removes a bookmark at the specified index.
parameters:
index - the index.

remove

public void remove(bookmark bookmark)
removes the specified bookmark.
parameters:
bookmark - the bookmark.

clear

public void clear()
removes all bookmarks from the document.
overrides:
clear in class collectionex


网站地图