Share via


View.CollapseOutline Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub CollapseOutline ( _
    ByRef Range As Object _
)
'Usage
Dim instance As View
Dim Range As Object

instance.CollapseOutline(Range)
void CollapseOutline(
    ref Object Range
)

Parameters

  • Range
    Type: System.Object%
    Optional Range object. The range of paragraphs to be collapsed. If this argument is omitted, the entire selection is collapsed.

Remarks

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

See Also

Reference

View Interface

View Members

Microsoft.Office.Interop.Word Namespace