DiagramNode.AddNode Method
Creates a diagram node. Returns a DiagramNode object that represents the new node.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.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: Microsoft.Office.Core.MsoRelativeNodePositionOptional MsoRelativeNodePosiiton. Where the node will be added, relative to another node.
MsoRelativeNodePosition can be one of these constants:
msoAfterLastSibling
msoAfterNode Default
msoBeforeFirstSibling
msoBeforeNode
nodeType
Type: Microsoft.Office.Core.MsoDiagramNodeTypeOptional MsoDiagramNodeType. The type of node. Can be one of these MsoDiagramNodeType constants:
msoDiagramAssistant
msoDiagramNode Default
Return Value
Type: Microsoft.Office.Interop.Excel.DiagramNode