Skip to main content

EncryptionSettings Class

Base implementation of the DocumentEncryption interface.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

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