DiagramNode.MoveNode Method
Moves a diagram node and any of its child nodes within a diagram.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub MoveNode ( _
pTargetNode As DiagramNode, _
pos As MsoRelativeNodePosition _
)
'Usage
Dim instance As DiagramNode
Dim pTargetNode As DiagramNode
Dim pos As MsoRelativeNodePosition
instance.MoveNode(pTargetNode, pos)
void MoveNode(
DiagramNode pTargetNode,
MsoRelativeNodePosition pos
)
Parameters
pTargetNode
Type: Microsoft.Office.Interop.Excel.DiagramNodeRequired DiagramNode object. The diagram node where the specified node will be moved.
pos
Type: Microsoft.Office.Core.MsoRelativeNodePositionRequired MsoRelativeNodePosiiton. The position to move the node, relative to TargetNode.
MsoRelativeNodePosition can be one of these constants:
msoAfterLastSibling
msoAfterNode
msoBeforeFirstSibling
msoBeforeNode