ShapeNode.Points Property (Word)

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

Syntax

expression .Points

expression A variable that represents a ShapeNode object.

Remarks

Each coordinate is expressed in points. Use the SetPosition method to set the location of the node.

Example

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

Set myDocument = ActiveDocument 
With myDocument.Shapes(3).Nodes 
 pointsArray = .Item(2).Points 
 currXvalue = pointsArray(1, 1) 
 currYvalue = pointsArray(1, 2) 
 .SetPosition 2, currXvalue + 200, currYvalue + 300 
End With

See Also

Concepts

ShapeNode Object Members

ShapeNode Object