[]
Provides access to the workbook write protection options.
public class WriteProtection
Indicates if the Read Only Recommended option is selected.
public bool ReadOnlyRecommended { get; set; }
Sets the protected password to modify the file.
public string WritePassword { set; }
Indicates whether this workbook is write protected.
public bool WriteReserved { get; }
Gets and sets the name of the user who currently has write permission for the workbook.
If you don't explicitly specify this property, the value will come from the IWorkbook.Author, and if the IWorkbook.Author is empty string or null, the value will be "Document Solution for Excel".
public string WriteReservedBy { get; set; }
Returns true if the specified password is the same as the write-protection password the file was protected with.
public bool ValidatePassword(string password)
password
stringThe specified password.