Aspose::Cells::WriteProtection class

WriteProtection class

Specifies write protection settings for a workbook.

class WriteProtection

Methods

MethodDescription
GetAuthor()Gets and sets the author.
GetPassword()Sets the protected password to modify the file.
GetRecommendReadOnly()Indicates if the Read Only Recommended option is selected.
IsNull() constChecks whether the implementation object is nullptr.
IsWriteProtected()Indicates whether this workbook is write protected.
explicit operator bool() constoperator bool()
operator=(const WriteProtection& src)operator=
SetAuthor(const U16String& value)Gets and sets the author.
SetAuthor(const char16_t* value)Gets and sets the author.
SetPassword(const U16String& value)Sets the protected password to modify the file.
SetPassword(const char16_t* value)Sets the protected password to modify the file.
SetRecommendReadOnly(bool value)Indicates if the Read Only Recommended option is selected.
ValidatePassword(const U16String& password)Returns true if the specified password is the same as the write-protection password the file was protected with.
ValidatePassword(const char16_t* password)Returns true if the specified password is the same as the write-protection password the file was protected with.
WriteProtection()Default constructor.
WriteProtection(WriteProtection_Impl* impl)Constructs from an implementation object.
WriteProtection(const WriteProtection& src)Copy constructor.
~WriteProtection()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also