ModifyProtection Class
Represents the modification protection options for the PresentationDocument. Supported only in PPTX format.
- Inheritance:
- ModifyProtection
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.
ModifyProtection is currently not supported when exporting a presentation to PDF, XPS or image file formats.
Properties
HasPassword
Returns true if PresentationDocument is protected with the password against modification and re-saving to the same file name.
Property Value
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
- String
New modification protection password (or null to remove password from modification protection).
Exceptions
password
is too long. Modification protection password cannot have more than 255 characters.