DiagramNode Object
Multiple objects DiagramNode Multiple objects |
Represents a single diagram node within a diagram. The DiagramNode object is a member of the DiagramNodes collection.
Using the DiagramNode object
Use the DiagramNode property of the Shape or ShapeRange object to return a DiagramNode object. Use the AddNode method to add a node to a diagram. This example assumes the third shape in the document is a diagram and adds a node to it.
Sub AddDiagramNode()
ActiveDocument.Shapes(3).DiagramNode.Children.AddNode
End Sub
Use the Delete method to remove a node from a diagram. This example assumes the second shape in the document is a diagram and removes the first node from it.
Sub DeleteDiagramNode()
ActiveDocument.Shapes(2).DiagramNode.Children(1).Delete
End Sub
Properties | Application Property | Children Property | Creator Property | Diagram Property | Layout Property | Parent Property | Root Property | Shape Property | TextShape Property
Methods | AddNode Method | CloneNode Method | Delete Method | MoveNode Method | NextNode Method | PrevNode Method | ReplaceNode Method | SwapNode Method | TransferChildren Method
Parent Objects | DiagramNode Object | DiagramNodeChildren Object | Shape Object | ShapeRange Object
Child Objects | Diagram Object | DiagramNode Object | DiagramNodeChildren Object | Shape Object