Word) (ListFormat.ListOutdent 方法

針對指定的 ListFormat 物件,減少此範圍中段落的清單階層,以一層的方式累加。

語法

expression. ListOutdent

需要 expression。 代表 'ListFormat' 物件的變數。

範例

這則範例會減少使用中文件內第一個清單中每個段落的縮排一層。

ActiveDocument.Lists(1).Range.ListFormat.ListOutdent

這則範例會將使用中文件內第四至第八個段落格式化成大綱編號清單、將這些段落縮排一層,然後移除清單中第一個段落的縮排。

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 
 
docActive.Paragraphs(4).Range.ListFormat.ListOutdent

另請參閱

ListFormat 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應