Share via


Paragraph.OutlineDemote Method

Word Developer Reference

Applies the next heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.

Syntax

expression.OutlineDemote

expression   Required. A variable that represents a Paragraph object.

Remarks

If a paragraph is formatted with the Heading 2 style, this method demotes the paragraph by changing the style to Heading 3.

Example

This example demotes the first paragraph in the selection.

Visual Basic for Applications
  Selection.Paragraphs(1).OutlineDemote

This example demotes the third paragraph in the active document.

Visual Basic for Applications
  ActiveDocument.Paragraphs(3).OutlineDemote

See Also