DiagramNodeChildren.AddNode(Object, MsoDiagramNodeType) Method

Definition

Adds a DiagramNode object to a collection of child diagram nodes.

public Microsoft.Office.Interop.Word.DiagramNode AddNode (ref object Index = -1, Microsoft.Office.Core.MsoDiagramNodeType NodeType = Microsoft.Office.Core.MsoDiagramNodeType.msoDiagramNode);
abstract member AddNode : obj * Microsoft.Office.Core.MsoDiagramNodeType -> Microsoft.Office.Interop.Word.DiagramNode
Public Function AddNode (Optional ByRef Index As Object = -1, Optional NodeType As MsoDiagramNodeType = Microsoft.Office.Core.MsoDiagramNodeType.msoDiagramNode) As DiagramNode

Parameters

Index
Object

Optional Object. The index location of where to add the new diagram node: 0 adds before all nodes, -1 adds after all nodes, and any other Index number will add after that node in the collection.

NodeType
MsoDiagramNodeType

Optional MsoDiagramNodeType. Specifies the node type.

Returns

Applies to