How do I protect bookmark names of a document from being edited?

I am having a document called Student with several bookmarks. I am filling the bookmark text by getting data from database. Now I want to protect the bookmark names from being edited or modified by C# coding. Is there any way to make the bookmark name as read only?

Document.Protect(ProtectionType.Readonly,“password”);
The above code protects the whole document from being edited. I want to protect only bookmark’s names.
Please give me the solution immediately…

Hi Allan,


Thanks for your inquiry. Can you make bookmark’s name read-only using Microsoft Word? If yes, could you please share the document containing read-only bookmarks here for our reference? We will investigate the scenario further on our end and provide you more information.

Best regards,