Share via


DiagramNodeChildren Collection

A collection of DiagramNode objects that represents the child nodes in a diagram.

Using the DiagramNodeChildren collection

Use the Children property to return the nodes in a DiagramNodeChildren collection. Use the FirstChild property to access the first child node in a diagram. This example deletes the first child of the second node in the first diagram in the document. This example assumes that the first shape in the active document is a diagram with at least two nodes, one with child nodes.

Sub DiagramNodeChild()
    ActiveDocument.Shapes(1).Diagram.Nodes.Item(2) _
        .Children.FirstChild.Delete
End Sub

Properties | Application Property | Count Property | Creator Property | FirstChild Property | LastChild Property | Parent Property

Methods | AddNode Method | Item Method | SelectAll Method

Parent Objects | DiagramNode Object

Child Objects | DiagramNode Object