网格线 Facade API 0.4.2+
切换子表网格线的显示和隐藏
import { FUniver } from '@univerjs/facade';
const univerAPI = FUniver.newAPI(univer);
const sheet = univerAPI.getActiveWorkbook().getActiveSheet();
// hide
sheet.setHiddenGridlines(true);
// show
sheet.setHiddenGridlines(false);
获取当前子表网格线的隐藏状态
import { FUniver } from '@univerjs/facade';
const univerAPI = FUniver.newAPI(univer);
const sheet = univerAPI.getActiveWorkbook().getActiveSheet();
sheet.hasHiddenGridlines();