XYToPage method

Microsoft Visio Developer Reference

XYToPage method

   Example   

Transforms a point expressed in the local coordinate system of a Shape object to an equivalent point expressed in the local coordinate system of its Page or Master object.

Version added

2000

Syntax

object.XYToPage x, y, xprime, yprime

object

Required. An expression that returns a Shape object whose local coordinate system you are transforming the point from.

x

Required Double; x-coordinate in coordinate system of shpObj.

y

Required Double; y-coordinate in coordinate system of shpObj.

xprime

Required Double; x-coordinate corresponding to x in the Page or Master object's coordinate system.

yprime

Required Double; y-coordinate corresponding to y in the Page or Master object's coordinate system.

Remarks

The points x, y, xprime, and yprime are all treated as internal drawing units.

An exception is raised if object is not a Shape object of a Page or Master object.