我正在使用 closedxml 导出 excel..
现在我可以使用以下函数保护(锁定单元格)单元格,
workSheet.Cell(rowIndex,column).Style.Protection.SetLocked(true);
我想设置一组单元格.. 这在 closedxml 中可能吗?
最佳答案
你可以像这样使用Range
workSheet.Range(startRow, startColumn, endRow, endColumn).Style.Protection.SetLocked(true);
关于c# - 为一组单元格设置锁定为真,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20286191/