BookmarkCollection

BookmarkCollection

Overview

BookmarkCollection is a class in Aspose.Words FOSS for Java. Inherits from: Iterable<Bookmark>.

A collection of Bookmark objects that represent the bookmarks in the specified range.

Edition status of its 7 listed members (a property and its accessor methods are listed separately, overloads once): 7 not yet exercised by a verified example.

This class declares 8 methods for BookmarkCollection objects in Java programs. Available methods include: clear, get, getCount, iterator, remove, removeAt. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: count.

Properties

NameTypeAccessDescription
countintReadReturns the number of bookmarks in the collection.

Methods

SignatureDescription
getCount() → intReturns the number of bookmarks in the collection.
get(index: int) → BookmarkReturns a bookmark at the specified index.
get(bookmarkName: String) → BookmarkReturns a bookmark by name.
remove(bookmark: Bookmark)Removes the specified bookmark from the document.
remove(bookmarkName: String)Removes a bookmark with the specified name.
removeAt(index: int)Removes a bookmark at the specified index.
clear()Removes all bookmarks from this collection and from the document.
iterator() → Iterator<Bookmark>Returns an enumerator object.

See Also