Word获取指定章节标题
<h1>功能</h1>
<p>Word获取指定章节的标题。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>风格</td>
<td>【字符串】样式名称</td>
<td>‘标题 1’</td>
</tr>
<tr>
<td>编号前缀</td>
<td>【字符串】章节编号前缀,选填项</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>结果</td>
<td>【字符串列表】章节标题列表</td>
<td>结果(创建变量)</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.若无标题输出,请检查参数【风格】的样式名称是否填写正确,如‘标题 1’写成‘标题1’。
2.参数【结果】处创建变量,将变量传入[遍历循环]函数的输出属性‘值’中。
3.使用[遍历循环]函数,将Word文档中所有的章节标题遍历出来,在输出属性‘项’中创建变量,再将变量传入[日志消息]函数中显示出来。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4e042bd2459c184b7c54bd50b7e55ede" alt="" /></p>
<h1>相关函数</h1>
<p>[遍历循环]函数</p>
<h1>示例/演示</h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/60fbbc1944f8e06270c76313ccc597cc" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/85fe2ccc21f525f8fa1b1e8e3ce94a81" title="[组件[Word获取指定章节标题函数示例]_20210407.db">组件[Word获取指定章节标题函数示例]_20210407.db</a></p>