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 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 object by specified name
 Bookmark get(int index)
          Gets the at the specified index.
 Bookmark get(java.lang.String name)
          Gets the 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 with the specified name.

Parameters:
name -
Returns:

get

public Bookmark get(int index)
Gets the at the specified index.

Parameters:
index -
Returns:

findByName

public Bookmark findByName(java.lang.String name)
Finds object by specified name

Parameters:
name - The bookmark name
Returns:

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