ModifyProtection Class
Represents the modification protection options for the PresentationDocument. Supported only in PPTX format.
- Inheritance:
- System.ObjectModifyProtection
Remarks
Modification protection refers to a mode in which the presentation's contents should not be modified, and the presentation should not be resaved using the same file name.
Properties
HasPassword
Returns true if PresentationDocument is protected with the password against modification and re-saving to the same file name.
Property Value
- System.Boolean
true if PresentationDocument is protected with the password against modification and re-saving to the same file name; otherwise, false.
Methods
SetPassword(String)
Sets the modification protection password for the current PresentationDocument instance.
Parameters
password
- System.String
New modification protection password (or null to remove password from modification protection).
Exceptions
- System.ArgumentException
password
is too long. Modification protection password cannot have more than 255 characters.