asposecells.api
Class WriteProtection

Specifies write protection settings for a workbook.

Constructor Summary
WriteProtection()
          
 
Property Getters/Setters Summary
methodgetAuthor()
methodsetAuthor(value)
           Gets and sets the author.
methodisWriteProtected()
           Indicates whether this workbook is write protected.
voidsetPassword(value)
           Sets the protected password to modify the file.
methodgetRecommendReadOnly()
methodsetRecommendReadOnly(value)
           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.

setPassword : String 

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:

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.