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

NameTypeAccessDescription
nameStringRead/WriteGets or sets the name of the bookmark.
textStringRead/WriteGets or sets the text enclosed in the bookmark.
bookmarkStartBookmarkStartReadGets the node that represents the start of the bookmark.
bookmarkEndBookmarkEndReadGets the node that represents the end of the bookmark.
columnbooleanReadReturns true if this bookmark is a table column bookmark.
firstColumnintReadGets the zero-based index of the first column of the table column range associated with the bookmark.
lastColumnintReadGets the zero-based index of the last column of the table column range associated with the bookmark.

Methods

SignatureDescription
getName() → StringGets or sets the name of the bookmark.
setName(value: String)Sets the name value.
getText() → StringGets or sets the text enclosed in the bookmark.
setText(value: String)Sets the text value.
getBookmarkStart() → BookmarkStartGets the node that represents the start of the bookmark.
getBookmarkEnd() → BookmarkEndGets the node that represents the end of the bookmark.
isColumn() → booleanReturns true if this bookmark is a table column bookmark.
getFirstColumn() → intGets the zero-based index of the first column of the table column range associated with the bookmark.
getLastColumn() → intGets the zero-based index of the last column of the table column range associated with the bookmark.
remove()Removes the bookmark from the document.

See Also