Back to Devexpress

TdxSpreadSheetCustomProtectionInfo Class

vcl-dxspreadsheetprotection-ee23fa89.md

latest2.7 KB
Original Source

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.

Implements

IdxSpreadSheetProtectionInfo

Inheritance

TObject TInterfacedObject TdxSpreadSheetCustomProtectionInfo

See Also

TdxSpreadSheetCustomProtectionInfo Members

dxSpreadSheetProtection Unit