Share via


View.ExpandOutline Method

Expands 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 ExpandOutline ( _
    ByRef Range As Object _
)
'Usage
Dim instance As View
Dim Range As Object

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

Parameters

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

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