A newer version of this page is available. Switch to the current version.

EncryptionOptions.Type Property

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

Namespace: DevExpress.Office.Crypto

Assembly: DevExpress.Printing.v18.2.Core.dll


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

Property Value

Type Description

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

The default is ModelEncryptionType.Strong.


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