次の方法で共有


ProtectedViewWindow.Height Property (Word)

Returns or sets the height of the protected view window. Read/write Long.

Version Information

Version Added: Word 2010

Syntax

expression .Height

expression An expression that returns a ProtectedViewWindow object.

Remarks

You cannot set this property if the window is maximized or minimized. Use the UsableHeight property of the Application object to determine the maximum size for the window. Use the WindowState property to determine the window state.

Example

The following code example changes the height of the active protected view window to fill the application window area.

With ActiveProtectedViewWindow 
 .WindowState = wdWindowStateNormal 
 .Height = Application.UsableHeight 
End With

See Also

Concepts

ProtectedViewWindow Object

ProtectedViewWindow Object Members