Skip to content
开发文档
能力中心
应用市场
WebOffice
开发者后台

Selection.IsCell(方法)

说明

判断当前选区是否是单元格

语法

表达式.IsCell()

表达式:Selection

返回值

Boolean

浏览器环境示例

javascript
async function example() {
    await instance.ready();
    const app = instance.Application;
    const dbSheet = await app.ActiveDBSheet;
    const selection = await dbSheet.Selection;
    const isCell = selection.IsCell();
}

脚本编辑器 示例

javascript
function main() {
    const selection = app.ActiveDBSheet.Selection;
    const isCell = selection.IsCell();
}
main()