Paragraphs.OutlineLevel Property

Word Developer Reference

Returns or sets the outline level for the specified paragraphs. Read/write WdOutlineLevel.

Syntax

expression.OutlineLevel

expression   Required. A variable that represents a Paragraphs collection.

Remarks

If a paragraph has a heading style applied to it (Heading 1 through Heading 9), the outline level is the same as the heading style and cannot be changed. Outline levels are visible only in outline view or the document map pane.

Example

This example returns the outline level of all paragraphs in the active document.

Visual Basic for Applications
  temp = ActiveDocument.Paragraphs.OutlineLevel

See Also