TX Text Control ActiveX

Commenting a Document

Topic

Comments attach a note of a user to a range of text in a TXTextControl document, and other users can reply to them. The members below insert, edit, reply to, find and delete comments, read their text, author and time and report when the input position enters or leaves commented text.

Properties

MemberDescription
TXTextControl.CommentCreationTimeReturns the date and time when the specified comment has been made.
TXTextControl.CommentEndReturns the index (one-based) of the last character of the text associated with the specified comment.
TXTextControl.CommentHighlightModeThis property returns or sets a value determining how commented text is highlighted in the document.
TXTextControl.CommentRepliesReturns the identifiers of all replies of the specified comment.
TXTextControl.CommentStartReturns the index (one-based) of the first character of the text associated with the specified comment.
TXTextControl.CommentTextReturns or sets the comment's text.
TXTextControl.CommentUserNameReturns the name of the user who has commented the document.

Methods

MemberDescription
TXTextControl.CommentDeleteThis method removes a comment from the document.
TXTextControl.CommentEditThis method opens a comment input control which the end-user can use to edit the specified comment.
TXTextControl.CommentGetRepliedGets the comment for which the specified comment is a reply.
TXTextControl.CommentInsertThis method opens a comment input control which the end-user can use to insert a new comment in the document.
TXTextControl.CommentNextThis method returns the identifier of the comment that follows the specified comment in the TXTextControl's current text.
TXTextControl.CommentReplyThis method opens a comment input control which the end-user can use to reply to the specified comment.

Events

MemberDescription
TXTextControl.CommentChangedOccurs when the text of a comment has been changed.
TXTextControl.CommentCreatedOccurs when a comment has been created.
TXTextControl.CommentDeletedOccurs when a comment has been deleted.
TXTextControl.CommentedTextEnteredOccurs when the current input position indicated by the caret has been moved to a position that belongs to a commented piece of text.
TXTextControl.CommentedTextLeftOccurs when the current input position indicated by the caret has left a commented piece of text.