EncryptionOptions.Type Property

Gets or sets the encryption mechanism used to create a password-protected workbook.

Namespace: DevExpress.Office.Crypto

Assembly: DevExpress.Data.v20.1.dll

Declaration

public ModelEncryptionType Type { get; set; }
Public Property Type As ModelEncryptionType

Property Value

Type Description
ModelEncryptionType

One of the ModelEncryptionType enumeration values specifying the type of encryption.

The default is ModelEncryptionType.Strong.

Remarks

The Type property is applicable only to the XLSX files and is ignored if you export a workbook to XLS format. For XLS files, the RC4 encryption is used.

To specify an encryption password, use the EncryptionOptions.Password property.

See Also