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

How to get comments before save as xaml or docx

1 Answer 29 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
walter
Top achievements
Rank 1
walter asked on 09 Aug 2011, 04:28 AM
Hi all,
I am adding a comment with paragraph, the code as follow:

            string commentContent = "Kitty";
            Comment comment = new Comment(commentContent);
            DocumentPosition startPosition = this.editor.Document.CaretPosition;
            DocumentPosition endPosition = new DocumentPosition(startPosition);
            startPosition.MoveToFirstPositionInParagraph();
            endPosition.MoveToLastPositionInParagraph();
            this.editor.Document.InsertComment(startPosition, endPosition, comment);

How can I get the comment text "Kitty" and the paragraph text which was commented ?

Regards,

Walter

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 11 Aug 2011, 12:13 PM
Hi Walter,

Please refer to this forum thread, which addresses the same question.

All the best,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RichTextBox
Asked by
walter
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or