Aspose::Cells::WriteProtection class
Contents
[
Hide
]WriteProtection class
Specifies write protection settings for a workbook.
class WriteProtection
Methods
Method | Description |
---|---|
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() const | Checks whether the implementation object is nullptr. |
IsWriteProtected() | Indicates whether this workbook is write protected. |
explicit operator bool() const | operator 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
Field | Description |
---|---|
_impl | The implementation object. |
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++