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
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of bookmarks in the collection. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Returns the number of bookmarks in the collection. |
get(index: int) → Bookmark | Returns a bookmark at the specified index. |
get(bookmarkName: String) → Bookmark | Returns 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. |