Share via


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.MsoRelativeNodePosition

    Optional MsoRelativeNodePosiiton. Where the node will be added, relative to another node.

    MsoRelativeNodePosition can be one of these constants:

    msoAfterLastSibling

    msoAfterNode Default

    msoBeforeFirstSibling

    msoBeforeNode

Return Value

Type: Microsoft.Office.Interop.Excel.DiagramNode

See Also

Reference

DiagramNode Interface

DiagramNode Members

Microsoft.Office.Interop.Excel Namespace