setPassword method
setPassword(password)
Sets the write protection password for the document.
setPassword(password: string)
Parameter | Type | Description |
---|---|---|
password | string | The password to set. Cannot be null , but can be an empty string. |
Remarks
If a password is set, Microsoft Word will require the user to enter it or open the document as read-only.
See Also
- module Aspose.Words.Settings
- class WriteProtection