Shape.XYFromPage Method (Visio)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

expression .XYFromPage(x, y, xprime, yprime)

expression A variable that represents a Shape object.

Parameters

Name

Required/Optional

Data Type

Description

x

Required

Double

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

y

Required

Double

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

xprime

Required

Double

x-coordinate in coordinate system of object.

yprime

Required

Double

y-coordinate in coordinate system of object.

Return Value

Nothing

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.

Show: