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

TdxSpreadSheetProtectSheet Class

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

#Declaration

Delphi
TdxSpreadSheetProtectSheet = class(
    TdxSpreadSheetAction
)

#Remarks

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

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

The TdxSpreadSheetProtectSheet 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