[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.XlsxSaveOptions.Password

Password Property

Password

Gets or sets the password used to encrypt the saved xlsx file.

Use this property to configure password protection before saving a workbook.

Declaration
public string Password { get; set; }
Public Property Password As String
Examples
string configuredPassword = GetWorkbookPassword();
XlsxSaveOptions options = new XlsxSaveOptions();
options.Password = configuredPassword;
string password = options.Password;
workbook.Save("path/to/output.xlsx", options);