Bookmark
Overview
Bookmark is a class in Aspose.Words FOSS for Java.
Represents a single bookmark.
Edition status of its 17 listed members (a property and its accessor methods are listed separately, overloads once): 17 not yet exercised by a verified example.
This class declares 10 methods for Bookmark objects in Java programs.
Available methods include: getBookmarkEnd, getBookmarkStart, getFirstColumn, getLastColumn, getName, getText, isColumn, remove, setName, setText.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: bookmarkEnd, bookmarkStart, column, firstColumn, lastColumn, name, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read/Write | Gets or sets the name of the bookmark. |
text | String | Read/Write | Gets or sets the text enclosed in the bookmark. |
bookmarkStart | BookmarkStart | Read | Gets the node that represents the start of the bookmark. |
bookmarkEnd | BookmarkEnd | Read | Gets the node that represents the end of the bookmark. |
column | boolean | Read | Returns true if this bookmark is a table column bookmark. |
firstColumn | int | Read | Gets the zero-based index of the first column of the table column range associated with the bookmark. |
lastColumn | int | Read | Gets the zero-based index of the last column of the table column range associated with the bookmark. |
Methods
| Signature | Description |
|---|---|
getName() → String | Gets or sets the name of the bookmark. |
setName(value: String) | Sets the name value. |
getText() → String | Gets or sets the text enclosed in the bookmark. |
setText(value: String) | Sets the text value. |
getBookmarkStart() → BookmarkStart | Gets the node that represents the start of the bookmark. |
getBookmarkEnd() → BookmarkEnd | Gets the node that represents the end of the bookmark. |
isColumn() → boolean | Returns true if this bookmark is a table column bookmark. |
getFirstColumn() → int | Gets the zero-based index of the first column of the table column range associated with the bookmark. |
getLastColumn() → int | Gets the zero-based index of the last column of the table column range associated with the bookmark. |
remove() | Removes the bookmark from the document. |