new WriteProtection()

Methods

getAuthor()

Gets and sets the author.

getRecommendReadOnly()

Indicates if the Read Only Recommended option is selected.

isWriteProtected()

Indicates whether this workbook is write protected.

setAuthor()

Gets and sets the author.

setPassword()

Sets the protected password to modify the file.

setRecommendReadOnly()

Indicates if the Read Only Recommended option is selected.

validatePassword(password) → boolean

Returns true if the specified password is the same as the write-protection password the file was protected with.

Parameter

Name Type Optional Description

password

String

 

The specified password.

Returns

boolean