_Application.Resize(Int32, Int32) Method

Definition

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

C#
public void Resize (int Width, int Height);

Parameters

Width
Int32

Required Integer. The width of the window, in points.

Height
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.

Applies to

Product Versions
Word primary interop assembly Latest