应该是最后一个参数由问题,
应该是用 GC.Spread.Sheets.SheetArea.viewport
API 参考这里:https://demo.grapecity.com.cn/spreadjs/help/api/GC.Spread.Sheets.Worksheet.html#setColumnResizable
- //本示例设置setColumnResizable方法。
- sheet.setRowResizable(3,false,GC.Spread.Sheets.SheetArea.viewport);
- sheet.setColumnResizable(3,false,GC.Spread.Sheets.SheetArea.viewport);
- sheet.getRange(1,-1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).resizable(false);
- sheet.getRange(-1, 1, -1, 1, GC.Spread.Sheets.SheetArea.viewport).resizable(false);
复制代码
|