Partager via


ShapeNode.Points Property (PowerPoint)

Returns a Variant that represents the position of the specified node as a coordinate pair. Read-only.

Syntax

expression .Points

expression A variable that represents a ShapeNode object.

Return Value

Variant

Remarks

Each coordinate is expressed in points. Use the SetPosition method to set the value of this property.

Example

This example moves node two in shape three in the active presentation to the right 200 points and down 300 points. Shape three must be a freeform drawing.

With ActivePresentation.Slides(1).Shapes(3).Nodes

    pointsArray = .Item(2).Points

    currXvalue = pointsArray(1, 1)

    currYvalue = pointsArray(1, 2)

    .SetPosition Index:=2, X1:=currXvalue + 200, Y1:=currYvalue + 300

End With

See Also

Concepts

ShapeNode Object Members

ShapeNode Object