ListFormat.ListIndent 方法 (Word)

增加段落增加一个级别中指定的 ListFormat 对象的范围的列表级别。

语法

expression. ListIndent

表达式是必需的。 一个代表“ListFormat”对象的变量。

示例

本示例设置文档 1 的第一个列表中的每一段依次缩进一个级别。

Documents(1).Lists(1).Range.ListFormat.ListIndent

本示例设置活动文档 4 至 8 段的格式为多级符号列表,然后将段落缩进一个级别。

Dim docActive As Document 
Dim rngTemp As Range 
 
Set docActive = ActiveDocument
Set rngTemp = _ 
 docActive.Range( _ 
 Start:=docActive.Paragraphs(4).Range.Start, _ 
 End:=docActive.Paragraphs(8).Range.End) 
 
With rngTemp.ListFormat 
 .ApplyOutlineNumberDefault 
 .ListIndent 
End With

另请参阅

ListFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。