CollapseOutline Method

See Also         Example         Applies To

Collapses the text under the selection or the specified range by one heading level.

Note   If the document isn't in outline or master document view, an error occurs.

Syntax

expression.CollapseOutline(Range)

expression   Required. An expression that returns a View object.

Range   Optional Range object. The range of paragraphs to be collapsed. If this argument is omitted, the entire selection is collapsed.