DocumentProtectionType Property |
Namespace: Aspose.Words
This property allows to retrieve the currently set document protection type. To change the document protection type use the Protect(ProtectionType, String) and Unprotect methods.
When a document is protected, the user can make only limited changes, such as adding annotations, making revisions, or completing a form.
Note that document protection is different from write protection. Write protection is specified using the WriteProtection
Document doc = new Document(MyDir + "Document.docx"); ProtectionType protectionType = doc.ProtectionType;