Click or drag to resize
NanoXLSX

CellSetCellLockedState Method

Sets the lock state of the cell

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntax
C#
public void SetCellLockedState(
	bool isLocked,
	bool isHidden
)

Parameters

isLocked  Boolean
If true, the cell will be locked if the worksheet is protected
isHidden  Boolean
If true, the value of the cell will be invisible if the worksheet is protected
Exceptions
ExceptionCondition
StyleExceptionThrows a StyleException 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