WorksheetProtectionModel

WorksheetProtectionModel

Overview

WorksheetProtectionModel is a class in Aspose.Cells FOSS for .NET.

Represents worksheet protection model.

Properties

NameTypeAccessDescription
IsProtectedboolRead/WriteGets or sets whether the worksheet is protected
ObjectsboolRead/WriteGets or sets whether objects on the sheet can be edited when protected
ScenariosboolRead/WriteGets or sets whether scenario manager is usable when protected
FormatCellsboolRead/WriteGets or sets whether cell formatting is allowed when protected
FormatColumnsboolRead/Write
FormatRowsboolRead/Write
InsertColumnsboolRead/WriteGets or sets whether columns can be inserted when protected
InsertRowsboolRead/Write
InsertHyperlinksboolRead/WriteGets or sets whether hyperlinks can be added when protected
DeleteColumnsboolRead/Write
DeleteRowsboolRead/WriteGets or sets whether rows can be deleted when protected
SelectLockedCellsboolRead/WriteGets or sets whether locked cells can be selected when protected
SortboolRead/WriteGets or sets whether sorting is allowed when protected
AutoFilterboolRead/WriteGets or sets whether auto‑filter can be used when protected
PivotTablesboolRead/WriteGets or sets whether pivot tables can be modified when protected
SelectUnlockedCellsboolRead/Write
PasswordHashstringRead/WriteGets or sets the hashed password for worksheet protection
AlgorithmNamestringRead/WriteGets or sets the name of the hash algorithm used
HashValuestringRead/WriteGets or sets the base64‑encoded hash of the password
SaltValuestringRead/WriteGets or sets the salt used in the password hash
SpinCountstringRead/WriteGets or sets the number of hash iterations for password protection

Methods

SignatureDescription
Clear()Clears the current state.
HasStoredState()if the condition is met; otherwise, .

See Also