返回一个 ListParagraphs 集合,该集合代表列表、文档或区域中所有编号段落。只读。
有关返回集合中单个成员的内容,请参阅返回集合中的对象。
本示例为第一个文档中的每一编号或有项目符号的段落添加一个黄色背景。
For Each numpar In Documents(1).ListParagraphs
numpar.Shading.BackgroundPatternColorIndex = wdYellow
Next numpar
本示例为活动文档中第二个列表中的段落添加双下划线。
For Each mypara In ActiveDocument.Lists(2).ListParagraphs
mypara.Range.Underline = wdUnderlineDouble
Next mypara