[]
Gets or sets the password used to encrypt the saved xlsx file.
Use this property to configure password protection before saving a workbook.
public string Password { get; set; }
Public Property Password As String
string configuredPassword = GetWorkbookPassword();
XlsxSaveOptions options = new XlsxSaveOptions();
options.Password = configuredPassword;
string password = options.Password;
workbook.Save("path/to/output.xlsx", options);