Skip to main content

TdxSpreadSheetProtectSheet Class

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

Declaration

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