工具 API
format_ text
格式化段落中的特定文本范围 参数: - file_id: 文件ID - paragraph_index: 段落索引 - start_pos: 起始位置 - end_pos: 结束位置 - font_name: 字体名称 - font_size: 字体大小 - bold: 是否加粗 - italic: 是否斜体 - underline: 是否下划线 - color: 文本颜色(十六进制) 返回: - 操作结果 使用示例: format_text(file_id="a1b2c3d4", paragraph_index=0, start_pos=0, end_pos=10, bold=True, color="FF0000")
其他1 积分
调用信息
- 工具标识
- word.format_text
- 服务提供方
- Word
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
file_id必填string
paragraph_index必填integer
start_pos必填integer
end_pos必填integer
font_namestring
font_sizeinteger
boldboolean
italicboolean
underlineboolean
colorstring