Back to Devexpress

TdxCustomSpreadSheet.Protect Method

vcl-dxspreadsheetcore-dot-tdxcustomspreadsheet-8fe9015d.md

latest1.2 KB
Original Source

TdxCustomSpreadSheet.Protect Method

Invokes the Protect Structure dialog.

Declaration

delphi
procedure Protect;

Remarks

Call this procedure to invoke the Protect Structure dialog for the opened spreadsheet document, provided that it is not yet protected.

Technically, the Protect procedure calls the ShowProtectWorkbookDialog if the OptionsProtection.Protected property is set to False.

You can allow end-users to invoke the Protect Structure dialog by linking the ProtectWorkbook command to an element of your UI.

See Also

TdxCustomSpreadSheet.Unprotect

TdxCustomSpreadSheet Class

TdxCustomSpreadSheet Members

dxSpreadSheetCore Unit