[]
Represents the set of document protection restrictions applied to a document.
public class DocumentProtection
These restrictions should be enforced by applications editing this document
when the IsActive property is turned on, and ignored (but persisted) otherwise.
Document protection is a set of restrictions used to prevent unintentional changes
to all or part of a document.
This protection does not encrypt the document, and malicious applications
might circumvent its use. This protection is not intended as a security feature.
| Name | Description |
|---|---|
| BlockQuickStylesetSwitching | Gets or sets a value indicating whether the replacement of the complete set of the document's styles should be blocked. |
| BlockThemeOrSchemeSwitching | Gets or sets a value indicating whether modification of the document's theme information should be blocked. |
| EditProtection | Specifies the type of editing restrictions which shall be enforced on the document. |
| MarkAsFinal | Gets or sets a value indicating whether the document is marked as final (read-only). |
| ReadOnlyRecommended | Gets or sets a value indicating whether read-only mode is recommended when opening the document. |
| WritePassword | Gets or sets the write password. |