aspose.cells

Class WriteProtection

Specifies write protection settings for a workbook.

Constructor Summary
 
Property Getters/Setters Summary
functiongetAuthor()
function
setAuthor(value)
           Gets and sets the author.
functionisWriteProtected()
Indicates whether this workbook is write protected.
voidsetPassword(value)
Sets the protected password to modify the file.
functiongetRecommendReadOnly()
function
           Indicates if the Read Only Recommended option is selected.
 
Method Summary
functionvalidatePassword(password)
Returns true if the specified password is the same as the write-protection password the file was protected with.
 

    • Constructor Detail

      • WriteProtection

        function WriteProtection()
    • Property Getters/Setters Detail

      • getAuthor/setAuthor : String 

        function getAuthor() / function setAuthor(value)
        
        Gets and sets the author.
      • getRecommendReadOnly/setRecommendReadOnly : boolean 

        function getRecommendReadOnly() / function setRecommendReadOnly(value)
        
        Indicates if the Read Only Recommended option is selected.
      • isWriteProtected : boolean 

        function isWriteProtected()
        
        Indicates whether this workbook is write protected.
      • setPassword : String 

        function setPassword(value)
        
        Sets the protected password to modify the file.
    • Method Detail

      • validatePassword

        function validatePassword(password)
        Returns true if the specified password is the same as the write-protection password the file was protected with.
        Parameters:
        password: String - The specified password.
        Returns: