Skip to main content
All docs
V26.1
  • EncryptionSettings Class

    Base implementation of the DocumentEncryption interface.

    Namespace: DevExpress.XtraRichEdit.API.Native

    Assembly: DevExpress.RichEdit.v26.1.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.Docx, encryptionSettings);
    

    Inheritance

    Object
    EncryptionSettings
    See Also