Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想保护一个工作表,不包括一列或一系列单元格,任何人都知道如何在生成后手动进入并取消保护它们的情况下实现这一点?
提前谢谢^_^
单元格是否保持锁定的定义存在于单元格本身中,因此您最多可以定义在生成工作表之后但在保护它之前不应锁定的范围:
Worksheet wks = new Worksheet(); wks.Range["F:F"].Locked = false; wks.Protect();