Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCustomProtectionInfo Class

The base class for all classes that implement encryption algorithm providers for the worksheet and the spreadsheet document protection functionality.

#Declaration

Delphi
TdxSpreadSheetCustomProtectionInfo = class abstract(TInterfacedObject, IdxSpreadSheetProtectionInfo)

#Remarks

This class is the direct ancestor of the TdxSpreadSheetStandardProtectionInfo and TdxSpreadSheetStrongProtectionInfo classes that implement the standard and strong password protection algorithm providers, respectively.

The TdxSpreadSheetCustomProtectionInfo class extends its ancestor with members that can be used to:

  • Identify the password used to protect an individual worksheet or the spreadsheet document structure (Password);

  • Compare the hash value calculated for the specified string with the stored hash value corresponding to the protection password (CheckPassword).

Normally, most of the members provided by the TdxSpreadSheetCustomProtectionInfo class and its descendants are used internally by the Spreadsheet/Report Designer control’s password protection-related methods, as well as the ProtectSheet and ProtectWorkbook commands.

You do not need to create instances of this class. To enforce the spreadsheet document structure or worksheet password protection, call the Create constructor to create instances of the TdxSpreadSheetCustomProtectionInfo class descendants.

#Inheritance

TObject
TInterfacedObject
TdxSpreadSheetCustomProtectionInfo
See Also