Compartilhar via


ListFormat.ListOutdent Method

Word Developer Reference

Decreases the list level of the paragraphs in the range for the specified ListFormat object, in increments of one level.

Syntax

expression.ListOutdent

expression   Required. A variable that represents a ListFormat object.

Example

This example reduces the indent of each paragraph in first list in the active document by one level.

Visual Basic for Applications
  ActiveDocument.Lists(1).Range.ListFormat.ListOutdent

This example formats paragraphs four through eight in the active document as an outline-numbered list, indents the paragraphs one level, and then removes the indent from the first paragraph in the list.

Visual Basic for Applications
  Dim docActive As Document
Dim rngTemp As Range

Set docActive = ActiveDocument

Visual Basic for Applications
  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

See Also