Skip to main content

EncryptionSettings Class

Base implementation of the DocumentEncryption interface.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.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);

Inheritance

Object
EncryptionSettings
See Also