Denotes the start of a region of text that has a comment associated with it.
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 Id value.
CommentRangeStart is an inline-level node and can only be a child of Paragraph.
Shows how print the contents of all comments and their comment ranges using a document visitor.
#include <Aspose.Words.Cpp/CommentRangeStart.h>
Public Member Functions | |
CommentRangeStart (SharedPtr< DocumentBase > doc, int32_t id) | |
Initializes a new instance of this class. More... | |
bool | Accept (SharedPtr< DocumentVisitor > visitor) override |
Accepts a visitor. More... | |
Aspose::Words::Revisions::DisplacedByType | get_DisplacedByCustomXml () override |
int32_t | get_Id () const |
Specifies the identifier of the comment to which this region is linked. More... | |
NodeType | get_NodeType () const override |
Returns CommentRangeStart. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_DisplacedByCustomXml (Aspose::Words::Revisions::DisplacedByType value) override |
void | set_Id (int32_t value) |
Setter for get_Id. More... | |
![]() | |
SharedPtr< Node > | Clone (bool isCloneChildren) |
Creates a duplicate of the node. More... | |
int32_t | get_CustomNodeId () const |
Specifies custom node identifier. More... | |
virtual SharedPtr< DocumentBase > | get_Document () const |
Gets the document to which this node belongs. More... | |
virtual bool | get_IsComposite () |
Returns true if this node can contain other nodes. More... | |
SharedPtr< Node > | get_NextSibling () |
Gets the node immediately following this node. More... | |
SharedPtr< CompositeNode > | get_ParentNode () |
Gets the immediate parent of this node. More... | |
SharedPtr< Node > | get_PreviousSibling () |
Gets the node immediately preceding this node. More... | |
SharedPtr< Range > | get_Range () |
Returns a Range object that represents the portion of a document that is contained in this node. More... | |
SharedPtr< CompositeNode > | GetAncestor (NodeType ancestorType) |
Gets the first ancestor of the specified NodeType. More... | |
template<typename T > | |
T | GetAncestorOf () |
virtual String | GetText () |
Gets the text of this node and of all its children. More... | |
SharedPtr< Node > | NextPreOrder (SharedPtr< Node > rootNode) |
Gets next node according to the pre-order tree traversal algorithm. More... | |
SharedPtr< Node > | PreviousPreOrder (SharedPtr< Node > rootNode) |
Gets the previous node according to the pre-order tree traversal algorithm. More... | |
void | Remove () |
Removes itself from the parent. More... | |
void | set_CustomNodeId (int32_t value) |
Setter for get_CustomNodeId. More... | |
String | ToString (SaveFormat saveFormat) |
Exports the content of the node into a string in the specified format. More... | |
String | ToString (SharedPtr< SaveOptions > saveOptions) |
Exports the content of the node into a string using the specified save options. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static String | NodeTypeToString (NodeType nodeType) |
A utility method that converts a node type enum value into a user friendly string. More... | |
static const TypeInfo & | Type () |
Aspose::Words::CommentRangeStart::CommentRangeStart | ( | System::SharedPtr< Aspose::Words::DocumentBase > | doc, |
int32_t | id | ||
) |
Initializes a new instance of this class.
When CommentRangeStart is created, it belongs to the specified document, but is not yet part of the document and ParentNode 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. |
Shows how print the contents of all comments and their comment ranges using a document visitor.
|
overridevirtual |
Accepts a visitor.
Calls VisitCommentRangeStart().
For more info see the Visitor design pattern.
visitor | The visitor that will visit the node. |
Shows how print the contents of all comments and their comment ranges using a document visitor.
Implements Aspose::Words::Node.
|
override |
int32_t Aspose::Words::CommentRangeStart::get_Id | ( | ) | const |
Specifies the identifier of the comment to which this region is linked.
Shows how print the contents of all comments and their comment ranges using a document visitor.
|
overridevirtual |
Returns CommentRangeStart.
Shows how to traverse a composite node's tree of child nodes.
Implements Aspose::Words::Node.
|
overridevirtual |
Reimplemented from Aspose::Words::Node.
|
overridevirtual |
Reimplemented from Aspose::Words::Node.
|
override |
void Aspose::Words::CommentRangeStart::set_Id | ( | int32_t | value | ) |
Setter for Aspose::Words::CommentRangeStart::get_Id.
|
static |