編輯

共用方式為


DiagramNode.AddNode(MsoRelativeNodePosition, MsoDiagramNodeType) Method

Definition

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

pos
MsoRelativeNodePosition

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

Returns

Applies to