Cell.SetCellLockedState Method

PicoXLSX

PicoXLSX

CellSetCellLockedState Method

Sets the lock state of the cell

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public void SetCellLockedState(
	bool isLocked,
	bool isHidden
)

Parameters

isLocked
Type: SystemBoolean
If true, the cell will be locked if the worksheet is protected
isHidden
Type: SystemBoolean
If true, the value of the cell will be invisible if the worksheet is protected
Exceptions
ExceptionCondition
StyleExceptionThrows an UndefinedStyleException if the style used to lock cells cannot be referenced
Remarks
The listed exception should never happen because the mentioned style is internally generated
See Also