Hi,
I have a document in which some texts are wrapped in Bookmark (say “Bookmark1”) and some texts are outside bookmark.
Now I have to find certain words in the texts only outside the bookmark and replace it with something else. I am using IReplacingCallback to find and replace.
When it finds certain word it is finding the texts that are wrapped inside the bookmark also, i need to ignore finding the text that exists inside the bookmark. Could you please let me know if there is any way to check if matched Node is inside the bookmark or outside the bookmark. If it is inside the bookmark i can skip that. Thanks