NanoXLSX.Core 3.0.0-rc.3
Loading...
Searching...
No Matches
IPassword.cs
1/*
2 * NanoXLSX is a small .NET library to generate and read XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3 * Copyright Raphael Stoeckli © 2025
4 * This library is licensed under the MIT License.
5 * You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
6 */
7
9{
13 public interface IPassword
14 {
18 string PasswordHash { get; set; }
19
24 void SetPassword(string plainText);
25
30
35 string GetPassword();
36
42
47 void CopyFrom(IPassword passwordInstance);
48 }
49}
Interface to represent a protection password, either for workbooks or worksheets. The implementations...
Definition IPassword.cs:14
void UnsetPassword()
Unsets a previously defined password.
void CopyFrom(IPassword passwordInstance)
Method to copy a password instance from another one.
string PasswordHash
Gets or sets the password hash.
Definition IPassword.cs:18
void SetPassword(string plainText)
Sets the plain text password.
bool PasswordIsSet()
Gets whether a password was set or not.
string GetPassword()
Gets the password as plain text.