Skip to main content

EncryptionOptions Class

Contains encryption options for a workbook.

Namespace: DevExpress.Office.Crypto

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public class EncryptionOptions

Remarks

To encrypt a document, create an instance of the EncryptionOptions class and pass it as a parameter to the IXlExporter.CreateDocument method. For an example, refer to the How to: Password Protect a Workbook topic.

The EncryptionOptions.Type property allows you to specify the encryption mechanism for XLSX files. By default, the agile encryption is used. XLS files support only RC4 encryption.

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

Inheritance

Object
EncryptionOptions
See Also