Window.ScrollIntoView Method
Scrolls through the document window so the specified range or shape is displayed in the document window.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub ScrollIntoView ( _
obj As Object, _
ByRef Start As Object _
)
'Usage
Dim instance As Window
Dim obj As Object
Dim Start As Object
instance.ScrollIntoView(obj, Start)
void ScrollIntoView(
Object obj,
ref Object Start
)
Parameters
- obj
Type: System.Object
Required Object. A Range or Shape object.
- Start
Type: System.Object%
Optional Boolean. True if the top left corner of the range or shape appears at the top left corner of the document window. False if the bottom right corner of the range or shape appears at the bottom right corner of the document window. The default value is True.
Remarks
If the range or shape is larger than the document window, the Start argument specifies which portion of the range or shape displays or gets initial focus. This method cannot be used with outline view.