Document |
The DocumentEditProtection type exposes the following members.
Name | Description | |
---|---|---|
EditingRestriction | Gets or sets the set of editing restrictions which shall be enforced on a given document. | |
EnforceEditingRestriction | Gets or sets a value indicating whether document protection settings shall be enforced for a given document. | |
HasPassword | Gets a value indicating whether document protection has password. | |
LimitFormatting | Gets or sets a value indicating whether formatting is limited just to unlocked styles. |
Name | Description | |
---|---|---|
SetPassword | Sets the password. If password is or empty, any existing password will be cleared. | |
StartEnforcingProtection | Starts enforcing protection by restricting document editing actions to those specified by editingRestriction parameter with optional password which must be specified to stop protection in consumer application such as MS Word. | |
StopProtection | Stops enforcing protection and clears password, if there is any. |