Table of contents
TOC
折叠目录
展开目录

Window.Resize 方法 (发布服务器)Window.Resize Method (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
3 参与人员

调整 Microsoft Publisher 应用程序窗口的尺寸。Sizes the Microsoft Publisher application window.

语法Syntax

表达式调整大小宽度高度expression. Resize( Width, Height)

_expression_A 表示一个窗口对象的变量。_expression_A variable that represents a Window object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
WidthWidth必需RequiredLongLong窗口的宽度,以磅为单位。The width of the window, in points.
HeightHeight必需RequiredLongLong窗口的高度,以磅为单位。The height of the window, in points.

注解Remarks

如果该窗口被最大化或最小化,将出现错误。If the window is maximized or minimized, an error occurs.

使用宽度高度属性单独设置窗口的宽度和高度。Use the Width and Height properties to set the window width and height independently.

示例Example

以下示例将 Publisher 应用程序窗口的尺寸重新设置为宽 7 英寸、高 6 英寸。This example resizes the Publisher application window to 7 inches wide by 6 inches high.

With Application.ActiveWindow 
 .WindowState = wdWindowStateNormal 
 .Resize Width:=InchesToPoints(7), Height:=InchesToPoints(6) 
End With
© 2018 Microsoft