Skip to main content

EncryptionOptions.Password Property

Gets or sets the password to encrypt the workbook.

Namespace: DevExpress.Office.Crypto

Assembly: DevExpress.Data.v24.2.dll

Declaration

public string Password { get; set; }

Property Value

Type Description
String

A string that is the password to protect the document.

Remarks

If you do not supply an encryption password, your document will be encrypted using the default password “VelvetSweatshop”, but you will not be prompted for a password while opening this file.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Password property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also