Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Document.Encryption Property

Provides access for the document’s encryption options.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

DocumentEncryption Encryption { get; }

Property Value

Type Description
DocumentEncryption

An object containing encryption options.

Remarks

Use the DocumentEncryption options to password-encrypt a document. Specify the encryption type and password, as shown below:

server.Document.Encryption.Type = DevExpress.XtraRichEdit.API.Native.EncryptionType.Strong;
server.Document.Encryption.Password = "12345";

server.SaveDocument("EncryptedWithNewPassword.docx", DocumentFormat.OpenXml);

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Encryption 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