aspose.cells
Class WriteProtection

Specifies write protection settings for a workbook.

Constructor Summary
WriteProtection()
          
 
Property Getters/Setters Summary
functiongetAuthor()
functionsetAuthor(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()
functionsetRecommendReadOnly(value)
           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:

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