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

Application.AppMove 方法 (项目)Application.AppMove Method (Project)

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

移动主项目窗口。Moves the main Project window.

语法Syntax

表达式AppMove(* * XPosition,* * YPosition,* )expression. **AppMove( ** XPosition, ** YPosition, ** Points* )

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
XPositionXPosition可选OptionalLongLong一个数字,指定主窗口与屏幕左边缘之间的距离。A number that specifies the distance of the main window from the left edge of the screen.
YPositionYPosition可选OptionalLongLong一个数字,指定主窗口和屏幕上边缘之间的距离。A number that specifies the distance of the main window from the top edge of the screen.
PointsPoints可选OptionalBooleanBoolean如此如果XPositionYPosition以磅为单位。如果他们以像素为单位来衡量。默认值为FalseTrue if XPosition and YPosition are measured in points. False if they are measured in pixels. The default value is False

返回值Return Value

BooleanBoolean

示例Example

下面的示例向左移动主窗口中的项目九个点。The following example moves the main window of Project nine points to the left.

Sub MoveMainWindowToLeft() 
    AppMove XPosition:=Application.Left - 9, Points:=True 
End Sub
© 2018 Microsoft