Univer
Univer Sheet
功能
Facade API

网格线 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();

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.