SheetProtection Class

Represents sheet-level protection settings matching the XLSX sheetProtection element. When IsProtected is true, actions are blocked unless the corresponding Allow property is true.

Inheritance

Object

Documents.Spreadsheet.SheetProtection

Namespace: Radzen.Documents.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class SheetProtection

Constructors

SheetProtectionLink to this section

Represents sheet-level protection settings matching the XLSX sheetProtection element. When IsProtected is true, actions are blocked unless the corresponding Allow property is true.

Declaration
public SheetProtection()

Properties

AlgorithmNameLink to this section

Gets or sets the hash algorithm name (e.g. "SHA-512").

Declaration
public string AlgorithmName { get; set; }
Property Value
Type Description
stringGets or sets the hash algorithm name (e.g. "SHA-512").

AllowAutoFilterLink to this section

Gets or sets whether auto-filter is allowed when the sheet is protected.

Declaration
public bool AllowAutoFilter { get; set; }
Property Value
Type Description
boolGets or sets whether auto-filter is allowed when the sheet is protected.

AllowDeleteColumnsLink to this section

Gets or sets whether deleting columns is allowed when the sheet is protected.

Declaration
public bool AllowDeleteColumns { get; set; }
Property Value
Type Description
boolGets or sets whether deleting columns is allowed when the sheet is protected.

AllowDeleteRowsLink to this section

Gets or sets whether deleting rows is allowed when the sheet is protected.

Declaration
public bool AllowDeleteRows { get; set; }
Property Value
Type Description
boolGets or sets whether deleting rows is allowed when the sheet is protected.

AllowFormatCellsLink to this section

Gets or sets whether formatting cells is allowed when the sheet is protected.

Declaration
public bool AllowFormatCells { get; set; }
Property Value
Type Description
boolGets or sets whether formatting cells is allowed when the sheet is protected.

AllowFormatColumnsLink to this section

Gets or sets whether formatting columns is allowed when the sheet is protected.

Declaration
public bool AllowFormatColumns { get; set; }
Property Value
Type Description
boolGets or sets whether formatting columns is allowed when the sheet is protected.

AllowFormatRowsLink to this section

Gets or sets whether formatting rows is allowed when the sheet is protected.

Declaration
public bool AllowFormatRows { get; set; }
Property Value
Type Description
boolGets or sets whether formatting rows is allowed when the sheet is protected.

AllowInsertColumnsLink to this section

Gets or sets whether inserting columns is allowed when the sheet is protected.

Declaration
public bool AllowInsertColumns { get; set; }
Property Value
Type Description
boolGets or sets whether inserting columns is allowed when the sheet is protected.

AllowInsertRowsLink to this section

Gets or sets whether inserting rows is allowed when the sheet is protected.

Declaration
public bool AllowInsertRows { get; set; }
Property Value
Type Description
boolGets or sets whether inserting rows is allowed when the sheet is protected.

AllowSelectLockedCellsLink to this section

Gets or sets whether selecting locked cells is allowed when the sheet is protected.

Declaration
public bool AllowSelectLockedCells { get; set; }
Property Value
Type Description
boolGets or sets whether selecting locked cells is allowed when the sheet is protected.

AllowSelectUnlockedCellsLink to this section

Gets or sets whether selecting unlocked cells is allowed when the sheet is protected.

Declaration
public bool AllowSelectUnlockedCells { get; set; }
Property Value
Type Description
boolGets or sets whether selecting unlocked cells is allowed when the sheet is protected.

AllowSortLink to this section

Gets or sets whether sorting is allowed when the sheet is protected.

Declaration
public bool AllowSort { get; set; }
Property Value
Type Description
boolGets or sets whether sorting is allowed when the sheet is protected.

HashValueLink to this section

Gets or sets the base64-encoded password hash value.

Declaration
public string HashValue { get; set; }
Property Value
Type Description
stringGets or sets the base64-encoded password hash value.

IsProtectedLink to this section

Gets or sets whether sheet protection is active.

Declaration
public bool IsProtected { get; set; }
Property Value
Type Description
boolGets or sets whether sheet protection is active.

PasswordHashLink to this section

Gets or sets the legacy 16-bit password hash (4 hex characters).

Declaration
public string PasswordHash { get; set; }
Property Value
Type Description
stringGets or sets the legacy 16-bit password hash (4 hex characters).

SaltValueLink to this section

Gets or sets the base64-encoded salt value.

Declaration
public string SaltValue { get; set; }
Property Value
Type Description
stringGets or sets the base64-encoded salt value.

SpinCountLink to this section

Gets or sets the number of hash iterations.

Declaration
public int? SpinCount { get; set; }
Property Value
Type Description
int?Gets or sets the number of hash iterations.

Methods

IsActionBlockedLink to this section

Returns true if the given action is blocked by protection.

Declaration
public bool IsActionBlocked(Documents.Spreadsheet.SheetAction action)
Parameters
Type Name Description
Documents.Spreadsheet.SheetAction action
Returns
Type Description
bool
An error has occurred. This app may no longer respond until reloaded. Reload 🗙