XlEncryptionOptions.Type Property
Specifies the applied encryption mechanism.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
[DefaultValue(XlEncryptionType.Strong)]
public XlEncryptionType Type { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Xl |
Strong | An Xl |
Available values:
Name | Description |
---|---|
Compatible | Applies the Standard Encryption mechanism that is compatible with Excel 2007. |
Strong | Applies the Agile Encryption mechanism. |
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Type |
---|---|---|
Cross-Platform Class Library | Xl |
|
Blazor | Grid |
|
Tree |
|
#Remarks
The encryption types listed in the XlEncryptionType enumeration are only applicable to XLSX files.
XLS files support only RC4 encryption (except for RC4CryptoAPI) and the Type property is ignored for such files.
To apply encryption, the XlEncryptionOptions.Password property must be specified (the default empty string cannot be used for file encryption).