DocumentProtectionType Property
Gets the currently active document protection type.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
Syntax
public ProtectionType ProtectionType { get; }

Property Value

Type: ProtectionType
Remarks

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

Examples
Shows how to get protection type currently set in the document.
Document doc = new Document(MyDir + "Document.doc");
ProtectionType protectionType = doc.ProtectionType;
See Also