帮助中心

# clearContext-清除值

调用clearContext函数清除区域中单元格的公式和值,会保留单元格格式和条件格式。

最小支持版本:5.0.0

# 接口说明

已获取ExcelRange实例,详情请参见getRangeByAddress (opens new window)

# 语法

<ExcelRange object>.clearContext()
1
<ExcelRange object>.清除值()
1

# 函数类型

实例函数

# 请求参数

# 返回参数

参数名称 类型 示例值 描述
Result Cube.Lang.Boolean true 清除结果。返回true表示清除成功,报错表示清除失败。

# 请求示例

ExcelRange实例.clearContext()
1
最近更新时间: { "value": "2023-09-12", "effect": true }