

The following code example shows how to restrict editing to modify only form fields in a Word document. NoProtection: You can access/edit the Word document contents as normally. This is done by implementing Words forms feature. After enabling this flag, accept and reject changes options in Microsoft Word application are disabled.ĪllowOnlyReading: You can only view the content in the Word document. You can protect just parts of a document so that they cannot be changed. The following are the types of protection:ĪllowOnl圜omments: You can add/modify only the comments in the Word document.ĪllowOnlyFormFields: You can modify the form field values in the Word document.ĪllowOnlyRevisions: Allow only revisions to be made to existing content. You can restrict a Word document from editing either by providing a password or without password. You can download a complete working sample from GitHub. Assembly using ( WordDocument document = new WordDocument ()) //Refer to the following link to save Word document in UWP platform //

"App" is the class of Portable project.
