WPS 基础接口 > 文字 API 参考 > Document > 属性 > Document.ListParagraphs 属性
返回一个 ListParagraphs 对象,该对象代表文档中的所有编号段落。只读。

语法

表达式.ListParagraphs

表达式   一个返回 Document 对象的表达式。

说明

有关返回集合中单个成员的信息,请参阅 返回集合中的单个对象。

示例

此示例为第一个文档中的每个编号段落或有项目符号的段落添加黄色背景。

示例代码
let numpar = Documents.Item(1).ListParagraphs
for(let i = 1; i <= numpar.Count; i++) {
    numpar.Item(i).Shading.BackgroundPatternColorIndex = wdYellow
}


请参阅