asposecells.api

Class WriteProtection

Specifies write protection settings for a workbook.

Constructor Summary
 
Property Getters/Setters Summary
methodgetAuthor()
method
setAuthor(value)
           Gets and sets the author.
methodisWriteProtected()
Indicates whether this workbook is write protected.
methodgetPassword()
method
           Sets the protected password to modify the file.
methodgetRecommendReadOnly()
method
           Indicates if the Read Only Recommended option is selected.
 
Method Summary
methodvalidatePassword(password)
Returns true if the specified password is the same as the write-protection password the file was protected with.
 

    • Constructor Detail

      • WriteProtection

        WriteProtection()
    • Property Getters/Setters Detail

      • getAuthor/setAuthor : String 

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

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

        boolean isWriteProtected()
        
        Indicates whether this workbook is write protected.
      • getPassword/setPassword : String 

        String getPassword() / setPassword(value)
        
        Sets the protected password to modify the file.
    • Method Detail

      • validatePassword

        boolean 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: