Class ExcelProtection
- Namespace
- OfficeOpenXml
- Assembly
- EPPlus.dll
Sets protection on the workbook level ExcelEncryption ExcelSheetProtection
public class ExcelProtection : XmlHelper
- Inheritance
-
ExcelProtection
- Inherited Members
Properties
LockRevision
Lock the workbook for revision
public bool LockRevision { get; set; }
Property Value
LockStructure
Locks the structure,which prevents users from adding or deleting worksheets or from displaying hidden worksheets.
public bool LockStructure { get; set; }
Property Value
LockWindows
Locks the position of the workbook window.
public bool LockWindows { get; set; }
Property Value
WriteProtection
File sharing settings for the workbook.
public ExcelWriteProtection WriteProtection { get; }
Property Value
Methods
SetPassword(string)
Sets a password for the workbook. This does not encrypt the workbook.
public void SetPassword(string Password)
Parameters
Password
stringThe password.