Aspose::Cells::LowCode::SpreadsheetLocker class

SpreadsheetLocker class

Low code api to lock spreadsheet file.

class SpreadsheetLocker

Methods

MethodDescription
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const SpreadsheetLocker& src)operator=
static Process(const U16String& templateFile, const U16String& resultFile, const U16String& openPassword, const U16String& writePassword)Locks spreadsheet file with specified settings.
static Process(const char16_t* templateFile, const char16_t* resultFile, const char16_t* openPassword, const char16_t* writePassword)Locks spreadsheet file with specified settings.
static Process(const LowCodeLoadOptions& loadOptions, const LowCodeSaveOptions& saveOptions, const U16String& openPassword, const U16String& writePassword)Locks spreadsheet file with specified settings.
static Process(const LowCodeLoadOptions& loadOptions, const LowCodeSaveOptions& saveOptions, const char16_t* openPassword, const char16_t* writePassword)Locks spreadsheet file with specified settings.
static Process(const LowCodeLoadOptions& loadOptions, const LowCodeSaveOptions& saveOptions, const U16String& openPassword, const U16String& writePassword, const U16String& workbookPassword, ProtectionType workbookType)Locks spreadsheet file with specified settings.
static Process(const LowCodeLoadOptions& loadOptions, const LowCodeSaveOptions& saveOptions, const char16_t* openPassword, const char16_t* writePassword, const char16_t* workbookPassword, ProtectionType workbookType)Locks spreadsheet file with specified settings.
static Process(const LowCodeLoadOptions& loadOptions, const LowCodeSaveOptions& saveOptions, const AbstractLowCodeProtectionProvider& provider)Locks spreadsheet file with specified settings.
SpreadsheetLocker(SpreadsheetLocker_Impl* impl)Constructs from an implementation object.
SpreadsheetLocker(const SpreadsheetLocker& src)Copy constructor.
~SpreadsheetLocker()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

SpreadsheetLocker::Process(u"template.xlsx", u"locked.xlsx", u"mypassword", u"mypassword");

See Also