Shape.Vertices property (Project)

Gets the coordinates of the vertices (and control points for a Bézier curve) as a series of coordinate pairs, for a shape that is a drawing. Read-only Variant.

Syntax

expression.Vertices

expression A variable that represents a Shape object.

Remarks

Use the array returned by the Vertices property as an argument for the AddCurve method or the AddPolyLine method.

For an array of vertices named vertArray, the following table shows how the Vertices property associates values in the array with the coordinates of vertices in a triangle.

Element in the array Value of the element (in points)
vertArray(1, 1) The horizontal distance from the first vertex to the left side of the document.
vertArray(1, 2) The vertical distance from the first vertex to the top of the document.
vertArray(2, 1) The horizontal distance from the second vertex to the left side of the document.
vertArray(2, 2) The vertical distance from the second vertex to the top of the document.
vertArray(3, 1) The horizontal distance from the third vertex to the left side of the document.
vertArray(3, 2) The vertical distance from the third vertex to the top of the document.

Property value

VARIANT

See also

Shape Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.