DiagramNodeChildren.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 ( _
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(
Object Index,
MsoDiagramNodeType nodeType
)
Parameters
Index
Type: System.ObjectOptional Object. The position of the node.
nodeType
Type: Microsoft.Office.Core.MsoDiagramNodeTypeOptional MsoDiagramNodeType. The type of node.
MsoDiagramNodeType can be one of these constants:
msoDiagramAssistant
msoDiagramNode Default
Return Value
Type: Microsoft.Office.Interop.Excel.DiagramNode