DiagramNode.AddNode Method 

Creates a diagram node, returning a DiagramNode object that represents the new diagram node. For conceptual diagrams, the DiagramNode object is added to the end of the shapes list.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim Pos As MsoRelativeNodePosition
Dim NodeType As MsoDiagramNodeType
Dim returnValue As DiagramNode
Dim diagramNode1 As DiagramNode
returnValue = diagramNode1.AddNode(Pos, NodeType)

Syntax

Function AddNode( _
    <InAttribute()> Optional ByVal Pos As MsoRelativeNodePosition, _
    <InAttribute()> Optional ByVal NodeType As MsoDiagramNodeType _
) As DiagramNode
DiagramNode AddNode(
    [In, Optional] MsoRelativeNodePosition Pos, 
    [In, Optional] MsoDiagramNodeType NodeType
);
public: DiagramNode^ AddNode(
    MsoRelativeNodePosition^ Pos, 
    MsoDiagramNodeType^ NodeType
);
public DiagramNode AddNode(
    /*in*/MsoRelativeNodePosition Pos, 
    /*in*/MsoDiagramNodeType NodeType
);
function AddNode(
     Pos : MsoRelativeNodePosition, 
     NodeType : MsoDiagramNodeType
) : DiagramNode;

Parameters

  • Pos
    Optional Microsoft.Office.Core.MsoRelativeNodePosition. Specifies where the node will be added, relative to the calling node.
  • NodeType
    Optional Microsoft.Office.Core.MsoDiagramNodeType. Specifies the node type.

Thread Safety

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

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

DiagramNode Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

DiagramNode Members