Table of Contents

Interface IXLProtectable

Namespace
SlapKit.Excel.Excel
Assembly
SlapKit.Excel.dll
public interface IXLProtectable
Extension Methods

Properties

IsPasswordProtected

Gets a value indicating whether this instance is protected with a password.

bool IsPasswordProtected { get; }

Property Value

bool

true if this instance is password protected; otherwise, false.

IsProtected

Gets a value indicating whether this instance is protected, either with or without a password.

bool IsProtected { get; }

Property Value

bool

true if this instance is protected; otherwise, false.

Methods

Protect(Algorithm)

Protects this instance without a password.

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

Parameters

algorithm XLProtectionAlgorithm.Algorithm

Returns

IXLElementProtection

Protect(string, Algorithm)

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

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

Parameters

password string

The password.

algorithm XLProtectionAlgorithm.Algorithm

The algorithm.

Returns

IXLElementProtection

Unprotect()

Unprotects this instance without a password.

IXLElementProtection Unprotect()

Returns

IXLElementProtection

Unprotect(string)

Unprotects this instance using the specified password.

IXLElementProtection Unprotect(string password)

Parameters

password string

The password.

Returns

IXLElementProtection