1金币
最佳答案您好,您可以通过添加数据验证来实现该功能:
示例如下:
spread.options.highlightInvalidData = true;
var dv = GC.Spread.Sheets.DataValidation.createNumberValidator(GC.Spread.Sheets.ConditionalFormatting.ComparisonOperators.greaterThan, "0", "0", true);
dv.showInputMessage(true);
dv.inputMessage("正整数");
dv.inputTitle("tip");
sheet.setDataValidator(1, 1, 1,1,dv,GC.Spread.Sheets.SheetArea.view ...
| |
| |
| |