I have two questions regarding comments.
First Question:
I can create a comment and add several replies.
When I close one of the replies, that replies and all the replies below that reply are closed.
This is expected behavior.
However, if close the comment and re-open the comment, then try to close one of the replies, all of the replies close up to the Comment.
I would expect this behavior to be the same before and after closing and re-opening the comment.
It appears that when a comment and replies are created and one of the replies is closed, The IsOpen property is set to false for the reply that is closed and the replies below that reply. The IsOpen property for the Replies above the one that is closed are left set to true.
When the comment is closed and re-opened, the IsOpen property for all of the replies are set to false when one of the replies is closed.
This is reproducible in the WinfForms Charp PdfEditorDemo by performing the following steps.
- Add a comment on a document.
Add several replies. Lets say 5 replies.
Close and re-open some of the replies. You will see that the reply and the replies below that one are closed, but the replies above it are left open.
Close the comment. The the comment and all replies are closed.
Re-open the comment.
Now close and re-open some of the replies. You will see that all of the replies are closed.
Is there a way that will allow me to close a reply and the sub replies but leave the above replies open after a comment has been closed and re-opened?
Second Question:
I would like to be able to close a comment and retain the Open state of the replies in the comment so that when I re-open the comment the replies will be in the same Open state as they where when I closed the comment.
Currently when I close a comment, The IsOpen property of all of the replies is set to false, so I do not know what state to return them to when I re-open the comment.
Is there a way to do this?
Thanks Harlan