Back to Devexpress

EncryptionOptions Class

corelibraries-devexpress-dot-office-dot-crypto.md

latest1.8 KB
Original Source

EncryptionOptions Class

Contains encryption options for a workbook.

Namespace : DevExpress.Office.Crypto

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public class EncryptionOptions
vb
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

EncryptionOptions Members

Use the Excel Export API to Password Protect a Workbook

DevExpress.Office.Crypto Namespace