NanoXLSX.Core 3.0.0-rc.5
Loading...
Searching...
No Matches
IPasswordWriter.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 © 2026
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
8using System.Collections.Generic;
10using static NanoXLSX.Enums.Password;
11
12
14{
18 public interface IPasswordWriter : IPassword
19 {
20
24 PasswordType Type { get; }
25
31 void Init(PasswordType type, string passwordHash);
32
37 IEnumerable<XmlAttribute> GetAttributes();
38 }
39}
Static class that contains shared enums for password handling, during read or write operations.
Definition Password.cs:14
Interface to represent a protection password, either for workbooks or worksheets. The implementations...
Definition IPassword.cs:14
Interface, used by specific writers that provides password handling.
void Init(PasswordType type, string passwordHash)
Method to initialize the password writer.
IEnumerable< XmlAttribute > GetAttributes()
Gets an IEnumerable of XML attributes.
PasswordType Type
Gets the target type of the password.