Table of Contents

Interface IXLProtectable<TProtection, TElement>

Namespace
SlapKit.Excel.Excel
Assembly
SlapKit.Excel.dll
public interface IXLProtectable<TProtection, in TElement> : IXLProtectable where TProtection : IXLElementProtection<in TElement> where TElement : struct

Type Parameters

TProtection
TElement
Inherited Members
Extension Methods

Properties

Protection

TProtection Protection { get; set; }

Property Value

TProtection

Methods

Protect(Algorithm)

Protects this instance without a password.

TProtection Protect(XLProtectionAlgorithm.Algorithm algorithm = Algorithm.SimpleHash)

Parameters

algorithm XLProtectionAlgorithm.Algorithm

Returns

TProtection

Protect(Algorithm, TElement)

Protects this instance with the specified password, password hash algorithm and set elements that the user is allowed to change.

TProtection Protect(XLProtectionAlgorithm.Algorithm algorithm, TElement allowedElements)

Parameters

algorithm XLProtectionAlgorithm.Algorithm

The algorithm.

allowedElements TElement

The allowed elements.

Returns

TProtection

Protect(string, Algorithm)

Protects this instance using the specified password and password hash algorithm.

TProtection Protect(string password, XLProtectionAlgorithm.Algorithm algorithm = Algorithm.SimpleHash)

Parameters

password string

The password.

algorithm XLProtectionAlgorithm.Algorithm

The algorithm.

Returns

TProtection

Protect(string, Algorithm, TElement)

Protects this instance with the specified password, password hash algorithm and set elements that the user is allowed to change.

TProtection Protect(string password, XLProtectionAlgorithm.Algorithm algorithm, TElement allowedElements)

Parameters

password string

The password.

algorithm XLProtectionAlgorithm.Algorithm

The algorithm.

allowedElements TElement

The allowed elements.

Returns

TProtection

Protect(TElement)

Protects this instance without a password.

TProtection Protect(TElement allowedElements)

Parameters

allowedElements TElement

Returns

TProtection

Unprotect()

Unprotects this instance without a password.

TProtection Unprotect()

Returns

TProtection

Unprotect(string)

Unprotects this instance using the specified password.

TProtection Unprotect(string password)

Parameters

password string

The password.

Returns

TProtection