.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

RichEditDocumentImportOptions.EncryptionPassword Property

Specifies a password used to unprotect a password-protected document during import.

Namespace: DevExpress.XtraRichEdit.Import

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public string EncryptionPassword { get; set; }

Property Value

Type Description
String

The target password.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to EncryptionPassword
WinForms Controls SnapControlOptions
.Import.EncryptionPassword
RepositoryItemRichTextEdit
.OptionsImport.EncryptionPassword
RichEditControlOptions
.Import.EncryptionPassword
WPF Controls RichEditControlOptions
.Import.EncryptionPassword
Office File API RichEditControlOptionsBase
.Import.EncryptionPassword

Remarks

The EncryptionPassword property specifies a password to open a password-encrypted document.
If the EncryptionPassword property is not specified or returns an invalid password, the EncryptedFilePasswordRequested event fires.

The code sample below shows how to specify the password to load an encrypted file.

server.Options.Import.EncryptionPassword = "test";
server.LoadDocument("Documents//testEncrypted.docx");
See Also