Skip to main content

TdxSpreadSheetProtectWorkbook Class

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

Declaration

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