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


DocumentEncryption Encryption { get; }

Property Value

Type Description

An object containing encryption options.


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);
See Also