工具 API
doc. set_ table_ properties
修改表格属性(DOC)。通过表格内任意 cell 的 GCP 位置 idx 定位表格,可同时设置边框、对齐、宽度、单元格内边距、按 9 种 condition 染色单元格,以及跨页重复标题行。全部字段可选,未提供的属性沿用原表格设置。跨页重复表头:header_rows=n(n>0)让表格最上面 n 行在每页顶部重复(w:tblHeader),表格无需拆开、分页点随正文自动变化;header_rows=0 取消表头;不传则不修改。cell_fills 中 condition 取值:whole_table / first_row / last_row / first_col / last_col / band_row_odd / band_row_even / band_col_odd / band_col_even。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的位置索引。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.
调用信息
- 工具标识
- tencent-docs.doc.set_table_properties
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
alignment对齐方式
borders边框
cell_fills单元格填充
cell_margin单元格内边距
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
header_rows跨页重复标题行数(w:tblHeader):n>0 时表格最上面 n 行在每页顶部重复,表格不用拆开、分页点随正文自动变化;0 表示取消重复表头;不传表示不修改。表头含纵向合并延伸到下面几行时,n 要包含这些行
idx必填表格内任意cell的GCP位置
version_info版本参数
width表格宽度