DiagramNodeChildren.AddNode Method
Adds a DiagramNode object to a collection of child diagram nodes.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function AddNode ( _
ByRef Index As Object, _
NodeType As MsoDiagramNodeType _
) As DiagramNode
'Usage
Dim instance As DiagramNodeChildren
Dim Index As Object
Dim NodeType As MsoDiagramNodeType
Dim returnValue As DiagramNode
returnValue = instance.AddNode(Index, _
NodeType)
DiagramNode AddNode(
ref Object Index,
MsoDiagramNodeType NodeType
)
Parameters
- Index
Type: System.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
Type: MsoDiagramNodeType
Optional MsoDiagramNodeType. Specifies the node type.
Return Value
Type: Microsoft.Office.Interop.Word.DiagramNode