Paragraph.OutlineLevel Property
Word Developer Reference |
Returns or sets the outline level for the specified paragraph. Read/write WdOutlineLevel.
Syntax
expression.OutlineLevel
expression Required. A variable that represents a Paragraph object.
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 the first paragraph in the active document.
Visual Basic for Applications |
---|
|
This example sets the outline level for each paragraph in the active document. First the Normal style is applied to all paragraphs. The Mod operator is used to determine which outline level (1, 2, or 3) to apply to successive paragraphs in the document, and then the view is changed to outline view.
Visual Basic for Applications |
---|
|
See Also