Protect workbooks
## Protect workbooks
The examples in this folder demonstrate how to protect workbooks:
- IWorkbook.WriteProtection Provides access to the workbook write protection options.
- If you set xlsxSaveOptions.Password to save the workbook, the saved workbook will be encrypted.
- Use IWorkbook.Protect() to protect the workbook with a password so that other users cannot view hidden worksheets, add, move, delete, hide, or rename worksheets.
- Set XlsxSaveOptions.Password to open the workbook, if the password is correct, the workbook will be decrypted.
- Use IWorkbook.Unprotect() to unprotect a workbook with a password.