XYFromPage 方法 (Visio)Shape.XYFromPage method (Visio)

将以其PageMaster对象的本地坐标系表示的点转换为以Shape对象的本地坐标系表示的等效点。Transforms a point expressed in the local coordinate system of its Page or Master object to an equivalent point expressed in the local coordinate system of the Shape object.

语法Syntax

expressionexpression. XYFromPage( _x_ , _y_ , _xprime_ , _yprime_ )

_表达式_一个代表**Shape** 对象的变量。expression A variable that represents a Shape object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
xx 必需Required DoubleDouble PageMaster对象的坐标系中的_x_对应的_x_坐标。x-coordinate corresponding to x in the Page or Master object's coordinate system.
yy 必需Required DoubleDouble PageMaster对象的坐标系中的_y_对应的_y_坐标。y-coordinate corresponding to y in the Page or Master object's coordinate system.
xprimexprime 必需Required DoubleDouble 对象的坐标系统中的_x_坐标 x-coordinate in coordinate system of object.
yprime 均yprime 必需Required DoubleDouble 对象的坐标系统中的_y_坐标 y-coordinate in coordinate system of object.

返回值Return value

NothingNothing

注解Remarks

点_x_、 y、 _xprime_和_yprime 均_全部被视为内部绘图单位。The points x, y, xprime, and yprime are all treated as internal drawing units.

如果对象不是PageMaster对象的Shape对象, 则会引发异常。An exception is raised if object is not a Shape object of a Page or Master object.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.