I want to programmatically hide specific comments in a Word document. I'm trying to do that by setting the Hidden property of the comment's reference. However, when I do so, it does not change the visibility of the comment.
I can hide the content of the comment by doing the same thing to the comment's range, but this leaves the balloon and line pointing to the text in the document body.
I see that I can hide a comment manually in the UI by selecting it and setting the font's hidden property. Therefore I think I should be able to achieve the same thing programmatically.
I could use a workaround of setting the author to 'Not displayed' and filtering the view to exclude revisions by 'Not displayed', then putting the author back to its original value when it is to be displayed again.
I would prefer to just be able to hide the comment directly without this change, so I would still be interested in a way of doing that.