Represents sheet-level protection settings matching the XLSX sheetProtection element. When IsProtected is true, actions are blocked unless the corresponding Allow property is true.
Object
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class SheetProtectionRepresents sheet-level protection settings matching the XLSX sheetProtection element. When IsProtected is true, actions are blocked unless the corresponding Allow property is true.
public SheetProtection()Gets or sets the hash algorithm name (e.g. "SHA-512").
public string AlgorithmName { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the hash algorithm name (e.g. "SHA-512"). |
Gets or sets whether auto-filter is allowed when the sheet is protected.
public bool AllowAutoFilter { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether auto-filter is allowed when the sheet is protected. |
Gets or sets whether deleting columns is allowed when the sheet is protected.
public bool AllowDeleteColumns { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether deleting columns is allowed when the sheet is protected. |
Gets or sets whether deleting rows is allowed when the sheet is protected.
public bool AllowDeleteRows { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether deleting rows is allowed when the sheet is protected. |
Gets or sets whether formatting cells is allowed when the sheet is protected.
public bool AllowFormatCells { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether formatting cells is allowed when the sheet is protected. |
Gets or sets whether formatting columns is allowed when the sheet is protected.
public bool AllowFormatColumns { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether formatting columns is allowed when the sheet is protected. |
Gets or sets whether formatting rows is allowed when the sheet is protected.
public bool AllowFormatRows { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether formatting rows is allowed when the sheet is protected. |
Gets or sets whether inserting columns is allowed when the sheet is protected.
public bool AllowInsertColumns { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether inserting columns is allowed when the sheet is protected. |
Gets or sets whether inserting hyperlinks is allowed when the sheet is protected.
public bool AllowInsertHyperlinks { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether inserting hyperlinks is allowed when the sheet is protected. |
Gets or sets whether inserting rows is allowed when the sheet is protected.
public bool AllowInsertRows { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether inserting rows is allowed when the sheet is protected. |
Gets or sets whether selecting locked cells is allowed when the sheet is protected.
public bool AllowSelectLockedCells { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether selecting locked cells is allowed when the sheet is protected. |
Gets or sets whether selecting unlocked cells is allowed when the sheet is protected.
public bool AllowSelectUnlockedCells { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether selecting unlocked cells is allowed when the sheet is protected. |
Gets or sets whether sorting is allowed when the sheet is protected.
public bool AllowSort { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether sorting is allowed when the sheet is protected. |
Gets or sets the base64-encoded password hash value.
public string HashValue { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the base64-encoded password hash value. |
Gets or sets whether sheet protection is active.
public bool IsProtected { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether sheet protection is active. |
Gets or sets the legacy 16-bit password hash (4 hex characters).
public string PasswordHash { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the legacy 16-bit password hash (4 hex characters). |
Gets or sets the base64-encoded salt value.
public string SaltValue { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the base64-encoded salt value. |
Gets or sets the number of hash iterations.
public int? SpinCount { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the number of hash iterations. |
Returns true if the given action is blocked by protection.
public bool IsActionBlocked(Documents.Spreadsheet.SheetAction action)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.SheetAction | action |
| Type | Description |
|---|---|
| bool |