Compartilhar via


Window.DisplayHorizontalScrollBar Property

Word Developer Reference

True if a horizontal scroll bar is displayed for the specified window. Read/write Boolean.

Syntax

expression.DisplayHorizontalScrollBar

expression   A variable that represents a Window object.

Example

This example displays vertical and horizontal scroll bars for the active window.

Visual Basic for Applications
  With ActiveDocument.ActiveWindow
    .DisplayHorizontalScrollBar = True
    .DisplayVerticalScrollBar = True
End With

This example toggles the horizontal scroll bar of the window for Document1.

Visual Basic for Applications
  Dim winTemp As Window

Set winTemp = Windows("Document1")

winTemp.DisplayHorizontalScrollBar = _ Not winTemp.DisplayHorizontalScrollBar

See Also