public class BookmarkEnd extends Node
To learn more, visit the Working with Bookmarks documentation article.
A complete bookmark in a Word document consists of a BookmarkStart and a matching BookmarkEnd with the same bookmark name.
BookmarkStart and BookmarkEnd are just markers inside a document that specify where the bookmark starts and ends.
Use the Bookmark class as a "facade" to work with a bookmark as a single object.
| Constructor and Description |
|---|
BookmarkEnd(DocumentBase doc,
java.lang.String name)
Initializes a new instance of the
BookmarkEnd class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
int |
getDisplacedByCustomXml() |
java.lang.String |
getName()
Gets the bookmark name.
|
int |
getNodeType()
Returns
NodeType.BOOKMARK_END. |
void |
setDisplacedByCustomXml(int value) |
void |
setName(java.lang.String value)
Sets the bookmark name.
|
dd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, getText, isComposite, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic BookmarkEnd(DocumentBase doc, java.lang.String name)
BookmarkEnd class.doc - The owner document.name - The name of the bookmark. Cannot be null.public int getNodeType()
NodeType.BOOKMARK_END.getNodeType in class NodeNodeType.BOOKMARK_END. The returned value is one of NodeType constants.public int getDisplacedByCustomXml()
public void setDisplacedByCustomXml(int value)
public boolean accept(DocumentVisitor visitor) throws java.lang.Exception
Calls DocumentVisitor.visitBookmarkEnd(com.aspose.words.BookmarkEnd).
For more info see the Visitor design pattern.
public java.lang.String getName()
Cannot be null.
public void setName(java.lang.String value)
Cannot be null.
value - The bookmark name.