This documentation is archived and is not being maintained.

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

Dim Index As Object
Dim nodeType As MsoDiagramNodeType
Dim returnValue As DiagramNode
Dim diagramNodeChildren1 As DiagramNodeChildren
returnValue = diagramNodeChildren1.AddNode(Index, nodeType)

DiagramNode AddNode(
	[In, Optional] object Index, 
	[In, Optional] MsoDiagramNodeType nodeType
public DiagramNode AddNode(
	/*in*/System.Object Index, 
	/*in*/MsoDiagramNodeType nodeType
function AddNode(
	 Index : Object, 
	 nodeType : MsoDiagramNodeType
) : DiagramNode;



Optional Object. The position of the node.


Optional Microsoft.Office.Interop.Office.MsoDiagramNodeType. The type of node.

MsoDiagramNodeType can be one of these constants:


msoDiagramNode Default

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms