NanoXLSX.Writer 3.0.0-rc.3
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 © 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
8using NanoXLSX.Utils.Xml;
9using System.Collections.Generic;
11
13{
17 public interface IPasswordWriter : IPassword
18 {
19
23 PasswordType Type { get; }
24
30 void Init(PasswordType type, string passwordHash);
31
36 IEnumerable<XmlAttribute> GetAttributes();
37 }
38}
Static class that contains enums for password handling.
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.