user3635481
user3635481

Reputation: 9

Editing comments in word using c#

I'm working on an add-in that allows replying to comments in a word document. I need to find which comment is selected and then add text to it through the code, but I can't seem to find methods for finding the selected comment or adding text to it. Thanks to anyone who might know how to help!

Upvotes: 0

Views: 416

Answers (1)

CloudyMarble
CloudyMarble

Reputation: 37566

Take a look at the Selection.Comments property, Its seems to return a Comments collection that represents all the comments in the specified selection. Selecting one comment would return a collection of one element i guess.

Once you have the Comment you can use the Range.Text property to modify the Text.

Upvotes: 1

Related Questions