View.WrapToWindow Property

Word Developer Reference

True if lines wrap at the right edge of the document window rather than at the right margin or the right column boundary. Read/write Boolean.

Syntax

expression.WrapToWindow

expression   An expression that returns a View object.

Remarks

This property has no effect in print layout or Web layout view.

Example

This example wraps the text to fit within the active window.

Visual Basic for Applications
  With ActiveDocument.ActiveWindow.View
    .Type = wdNormalView
    .WrapToWindow = True
End With

See Also