We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cell中,如何部分单元格写保护?

MS Excel的代码如下:
Range range2 = worksheet.get_Range(“A3”, “D” + num2.ToString());
range2.Locked = true;
worksheet.Protect(“XXXXXX”, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value,
Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value,
Missing.Value);

@zjian,

感谢您的代码段。

在看到您的VSTO或互操作性之后。 代码,我想你想用Aspose.Cells API来保护工作表中的(某些)单元格。 有关示例的完整参考,请参阅有关保护工作表的文档:
Protecting Worksheets