Back to Devexpress

EncryptedFilePasswordRequestedEventArgs.Password Property

officefileapi-devexpress-dot-xtrarichedit-dot-encryptedfilepasswordrequestedeventargs.md

latest2.4 KB
Original Source

EncryptedFilePasswordRequestedEventArgs.Password Property

Gets or sets the password used to encrypt the document.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public string Password { get; set; }
vb
Public Property Password As String

Property Value

TypeDescription
String

The encryption password.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Password property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-document-api-open-and-save-encrypted-files/CS/Program.cs#L100

csharp
Console.WriteLine("Enter password:");
e.Password = Console.ReadLine();
e.Handled = true;

word-document-api-open-and-save-encrypted-files/VB/Program.vb#L76

vb
Console.WriteLine("Enter password:")
e.Password = Console.ReadLine()
e.Handled = True

See Also

EncryptedFilePasswordRequestedEventArgs Class

EncryptedFilePasswordRequestedEventArgs Members

DevExpress.XtraRichEdit Namespace