Nodes Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Nodes property as it applies to the Diagram object.

Returns a DiagramNodes object that represents the nodes in a diagram.

expression.Nodes

expression   Required. An expression that returns a Diagram object.

Nodes property as it applies to the Shape and ShapeRange objects.

Returns a ShapeNodes collection that represents the geometric description of the specified shape.

expression.Nodes

expression   Required. An expression that returns one of the above objects.

Example

As it applies to the Diagram object.

This example assumes the first shape in the active document is a diagram, selects the first node, and deletes it.

  Sub FillDiagramNode()
    ActiveDocument.Shapes(1).Diagram.Nodes.Item(1).Delete
End Sub

As it applies to the Shape object.

This example adds a smooth node with a curved segment after node four in shape three in the active document. Shape three must be a freeform drawing with at least four nodes.

  With ActiveDocument.Shapes(3).Nodes
    .Insert Index:=4, SegmentType:=msoSegmentCurve, _
        EditingType:=msoEditingSmooth, X1:=210, Y1:=100
End With