EncryptionSettings Class
Base implementation of the DocumentEncryption interface.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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