This is a migrated thread and some comments may be shown as answers.

Deleting Comments

1 Answer 64 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 26 May 2011, 07:16 AM
I'm trying to delete comment(s) programmatically.  The document has several duplicate comments which have identical 'selection' text.  My goal is to delete the second or in some cases third occurance of each series of duplicated comment.  Is there any index value for comments?  Any suggestions are appreciated.   

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 01 Jun 2011, 09:32 AM
Hi Dave,

There is no index value for comments inserted at the same place in the document.
You can, however, use document positions to determine if the comments starts and comment ends are at the same place in the document.
Please find attached a sample demo project illustrating the approach. You can create comments from the RibbonUI (the Review Tab) and delete them using the button below.
Does this suit your needs?

Greetings,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Dave
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or