# getTableByIndex-按索引获取表格
调用getTableByIndex函数通过索引获取表格。
最小支持版本:5.0.0
# 接口说明
已通过getDocumentList创建WordDocument对象实例,详情请参见getDocumentList (opens new window)。
# 语法
<WordDocument object>.getTableByIndex(<index>)
1
<WordDocument object>.按索引获取表格(<index>)
1
# 函数类型
实例函数
# 请求参数
参数名称 | 类型 | 是否必选 | 默认值 | 示例值 | 描述 |
---|---|---|---|---|---|
index | Cube.Lang.Number | 是 | 无 | 1 | 表格索引值。 |
# 返回参数
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Result | Cube.App.Word.WordTable | Cube.App.Word.WordTable | 表格,WordTable对象。 |
# 请求示例
WordDocument对象.getTableByIndex(1)
1
最近更新时间: {
"value": "2023-09-12",
"effect": true
}