Compartilhar via


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

    Optional Object. The position of the node.

Return Value

Type: Microsoft.Office.Interop.Excel.DiagramNode

See Also

Reference

DiagramNodeChildren Interface

DiagramNodeChildren Members

Microsoft.Office.Interop.Excel Namespace