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

EncryptionSettings Class

Base implementation of the DocumentEncryption interface.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

public class EncryptionSettings :
    DocumentEncryption,
    IDisposable

Remarks

Use the EncryptionSettings class to password-protect the document on save, as shown below:

RichEditDocumentServer wordProcessor = new RichEditDocumentServer();
EncryptionSettings encryptionSettings = new EncryptionSettings();
encryptionSettings.Type = EncryptionType.Strong;
encryptionSettings.Password = "12345";

wordProcessor.SaveDocument("EncryptedWithNewPassword.docx", DocumentFormat.OpenXml, encryptionSettings);

Implements

Inheritance

Object
EncryptionSettings
See Also