_Application.Resize Method

Sizes the Microsoft Word application window or the specified task window.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub Resize ( _
    Width As Integer, _
    Height As Integer _
)
'Usage
Dim instance As _Application
Dim Width As Integer
Dim Height As Integer

instance.Resize(Width, Height)
void Resize(
    int Width,
    int Height
)

Parameters

  • Width
    Type: System.Int32
    Required Integer. The width of the window, in points.
  • Height
    Type: System.Int32
    Required Integer. The height of the window, in points.

Remarks

Use the Width or Height property to set the window width and height independently.

If the window is maximized or minimized, an error occurs.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace