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

TdxSpreadSheetProtectWorkbook Class

An action object that corresponds to the ProtectWorkbook command provided by the Spreadsheet and Report Designer controls.

#Declaration

Delphi
TdxSpreadSheetProtectWorkbook = class(
    TdxSpreadSheetAction
)

#Remarks

This class does not introduce any new public members. Depending on the opened spreadsheet document’s current protection state, executing this action object produces one of the following effects:

  • If the document is unprotected, the Protect Structure dialog is invoked.
  • If the document is protected with a password, the Password Protection dialog is invoked, prompting an end-user to enter a password to deactivate the document’s protection.
  • If the document is protected without a password, the document’s protection is disabled.

The TdxSpreadSheetProtectWorkbook class sets the new default value for the AutoCheck property, allowing the action’s Checked property to remain in sync with the client control’s Checked property (or its equivalent) by default.

See Also