WriteProtection
Contents
[
Hide
]WriteProtection class
Specifies write protection settings for a workbook.
class WriteProtection;
Properties
Property | Type | Description |
---|---|---|
author | string | Gets and sets the author. |
recommendReadOnly | boolean | Indicates if the Read Only Recommended option is selected. |
isWriteProtected | boolean | Readonly. Indicates whether this workbook is write protected. |
password | string | Sets the protected password to modify the file. |
Methods
Method | Description |
---|---|
validatePassword(string) | Returns true if the specified password is the same as the write-protection password the file was protected with. |
author
Gets and sets the author.
author : string;
recommendReadOnly
Indicates if the Read Only Recommended option is selected.
recommendReadOnly : boolean;
isWriteProtected
Readonly. Indicates whether this workbook is write protected.
isWriteProtected : boolean;
password
Sets the protected password to modify the file.
password : string;
validatePassword(string)
Returns true if the specified password is the same as the write-protection password the file was protected with.
validatePassword(password: string) : boolean;
Parameters:
Parameter | Type | Description |
---|---|---|
password | string | The specified password. |