bookmarkcollection-j9官方网址
com.spire.doc.collections
class bookmarkcollection
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.collections.collectionex
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.
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