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

TdxCustomSpreadSheet.Unprotect Method

In This Article

Disables the spreadsheet document structure protection.

#Declaration

Delphi
procedure Unprotect;

#Remarks

Call this procedure to cancel the spreadsheet document structure protection. If the document is protected with a password, the Unprotect procedure invokes the Password Protection dialog:

If an end-user successfully enters the required password, the spreadsheet document structure protection is disabled. Otherwise, the incorrect password message box is displayed:

The OptionsProtection.Protected and OptionsBehavior.Protected properties are set to False when the spreadsheet document protection is successfully disabled.

You can allow end-users to cancel the spreadsheet document structure protection by linking the ProtectWorkbook command to an element of your UI.

See Also