DiagramNodeChildren.AddNode(Object, MsoDiagramNodeType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.