.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfPasswordRequestedEventArgs.PasswordString Property

Specifies the security password to open a PDF file.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v20.1.Core.dll

Declaration

public string PasswordString { get; set; }
Public Property PasswordString As String

Property Value

Type Description
String

A String value.

Remarks

To interrupt the password request process, the PasswordString property value should be null.

Examples

The following code illustrates the use of the PdfViewer.PasswordRequested event.

using System.Windows.Forms;
using DevExpress.Pdf;
// ...

private void pdfViewer1_PasswordRequested(object sender,
    PdfPasswordRequestedEventArgs e) {
    e.PasswordString = "password";    
}
See Also