DiagramNode.AddNode(MsoRelativeNodePosition, MsoDiagramNodeType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a diagram node. Returns a DiagramNode object that represents the new node.
public Microsoft.Office.Interop.Excel.DiagramNode AddNode (Microsoft.Office.Core.MsoRelativeNodePosition pos = Microsoft.Office.Core.MsoRelativeNodePosition.msoAfterNode, Microsoft.Office.Core.MsoDiagramNodeType nodeType = Microsoft.Office.Core.MsoDiagramNodeType.msoDiagramNode);
Public Function AddNode (Optional pos As MsoRelativeNodePosition = Microsoft.Office.Core.MsoRelativeNodePosition.msoAfterNode, Optional nodeType As MsoDiagramNodeType = Microsoft.Office.Core.MsoDiagramNodeType.msoDiagramNode) As DiagramNode
Parameters
Optional Microsoft.Office.Interop.Office.MsoRelativeNodePosiiton. Where the node will be added, relative to another node.MsoRelativeNodePosition can be one of these constants:msoAfterLastSiblingmsoAfterNode DefaultmsoBeforeFirstSiblingmsoBeforeNode
- nodeType
- MsoDiagramNodeType
Optional Microsoft.Office.Interop.Office.MsoDiagramNodeType. The type of node. Can be one of these MsoDiagramNodeType constants:msoDiagramAssistantmsoDiagramNode Default