Share via


WrapToWindow Property

WrapToWindow Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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.

expression.WrapToWindow

expression   Required. 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.

  With ActiveDocument.ActiveWindow.View
    .Type = wdNormalView
    .WrapToWindow = True
End With