DiagramNode.AddNode Method
Creates a diagram node, returning a DiagramNode object that represents the new diagram node. For conceptual diagrams, the DiagramNode object is added to the end of the shapes list.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function AddNode ( _
Pos As MsoRelativeNodePosition, _
NodeType As MsoDiagramNodeType _
) As DiagramNode
'Usage
Dim instance As DiagramNode
Dim Pos As MsoRelativeNodePosition
Dim NodeType As MsoDiagramNodeType
Dim returnValue As DiagramNode
returnValue = instance.AddNode(Pos, NodeType)
DiagramNode AddNode(
MsoRelativeNodePosition Pos,
MsoDiagramNodeType NodeType
)
Parameters
- Pos
Type: MsoRelativeNodePosition
Optional MsoRelativeNodePosition. Specifies where the node will be added, relative to the calling node.
- NodeType
Type: MsoDiagramNodeType
Optional MsoDiagramNodeType. Specifies the node type.
Return Value
Type: Microsoft.Office.Interop.Word.DiagramNode