public class Bookmark
extends java.lang.Object
To learn more, visit the Working with Bookmarks documentation article.
Bookmark is a "facade" object that encapsulates two nodes getBookmarkStart() and getBookmarkEnd() in a document tree and allows to work with a bookmark as a single object.
| Modifier and Type | Method and Description |
|---|---|
BookmarkEnd |
getBookmarkEnd()
Gets the node that represents the end of the bookmark.
|
BookmarkStart |
getBookmarkStart()
Gets the node that represents the start of the bookmark.
|
int |
getFirstColumn()
Gets the zero-based index of the first column of the table column range associated with the bookmark.
|
int |
getLastColumn()
Gets the zero-based index of the last column of the table column range associated with the bookmark.
|
java.lang.String |
getName()
Gets the name of the bookmark.
|
java.lang.String |
getText()
Gets the text enclosed in the bookmark.
|
boolean |
isColumn()
Returns true if this bookmark is a table column bookmark.
|
void |
remove()
Removes the bookmark from the document.
|
void |
setName(java.lang.String value)
Sets the name of the bookmark.
|
void |
setText(java.lang.String value)
Sets the text enclosed in the bookmark.
|
public java.lang.String getName()
public void setName(java.lang.String value)
throws java.lang.Exception
value - The name of the bookmark.java.lang.Exceptionpublic java.lang.String getText()
throws java.lang.Exception
java.lang.Exceptionpublic void setText(java.lang.String value)
throws java.lang.Exception
value - The text enclosed in the bookmark.java.lang.Exceptionpublic BookmarkStart getBookmarkStart()
public BookmarkEnd getBookmarkEnd() throws java.lang.Exception
java.lang.Exceptionpublic boolean isColumn()
public int getFirstColumn()
public int getLastColumn()
public void remove()
throws java.lang.Exception
java.lang.Exception