Click or drag to resize

DocumentProtection Methods

The DocumentProtection type exposes the following members.

Public methodSetPassword
Sets the password. If password is or empty, any existing password will be cleared.
Public methodStartEnforcingProtection
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.
Public methodStopProtection
Stops enforcing protection and clears password, if there is any.
Public methodToString
Returns a String that represents this DocumentProtection instance.
(Overrides ObjectToString.)
See Also