public final class CommentRangeStart extends Node
To learn more, visit the Working with Comments documentation article.
To create a comment anchored to a region of text, you need to create a Comment and then create CommentRangeStart and CommentRangeEnd and set their identifiers to the same Comment.getId() value.
CommentRangeStart is an inline-level node and can only be a child of Paragraph.
Comment,
CommentRangeEnd| Constructor and Description |
|---|
CommentRangeStart(DocumentBase doc,
int id)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
int |
getDisplacedByCustomXml() |
int |
getId()
Specifies the identifier of the comment to which this region is linked.
|
int |
getIdInternal() |
int |
getNodeType()
Returns
NodeType.COMMENT_RANGE_START. |
int |
getParentIdInternal() |
void |
setDisplacedByCustomXml(int value) |
void |
setId(int value)
Specifies the identifier of the comment to which this region is linked.
|
void |
setIdInternal(int value) |
void |
setParentIdInternal(int value) |
dd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, getText, isComposite, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic CommentRangeStart(DocumentBase doc, int id)
When CommentRangeStart is created, it belongs to the specified document, but is not yet part of the document and Node.getParentNode() is null.
To append a CommentRangeStart to the document use InsertAfter or InsertBefore on the paragraph where you want the comment inserted.
doc - The owner document.id - The comment identifier to which this object is linked.public final int getId()
int value.public final void setId(int value)
value - The corresponding int value.public final int getDisplacedByCustomXml()
public final void setDisplacedByCustomXml(int value)
public final int getIdInternal()
public final void setIdInternal(int value)
public final int getParentIdInternal()
public final void setParentIdInternal(int value)
public final int getNodeType()
NodeType.COMMENT_RANGE_START.getNodeType in class NodeNodeType.COMMENT_RANGE_START. The returned value is one of NodeType constants.public final boolean accept(DocumentVisitor visitor) throws java.lang.Exception
Calls DocumentVisitor.visitCommentRangeStart(com.aspose.words.CommentRangeStart).
For more info see the Visitor design pattern.