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

IdxSpreadSheetProtectionInfo.CheckPassword(string) Method

Identifies if the hash calculated for the specified password matches the hash stored by a particular spreadsheet protection provider.

#Declaration

Delphi
function CheckPassword(const APassword: string): Boolean;

#Parameters

Name Type
APassword string

#Returns

Type
Boolean

#Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The CheckPassword function is called internally by:

The CheckPassword function returns True if the hash value calculated for the password passed as the APassword parameter is identical to the hash value of the password used by a spreadsheet protection provider. Otherwise, the function returns False.

The CheckPassword function can use various hash calculation algorithms for password verification, depending on which protection provider (i.e., an instance of the TdxSpreadSheetCustomProtectionInfo class descendant assigned to the OptionsProtection.ProtectionInfo property) is currently active and the protection provider settings, if applicable.

See Also