Nodes Property

Microsoft Word Visual Basic

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

expression.Nodes

expression    Required. An expression that returns a Diagram object.

ShowNodes 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

ShowAs 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
				

ShowAs 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