Edit

Share via


DiagramNode.SwapNode(DiagramNode, MsoRelativeNodePosition) Method

Definition

Swaps the target diagram node with the source diagram node.

public void SwapNode (out Microsoft.Office.Interop.Word.DiagramNode TargetNode, Microsoft.Office.Core.MsoRelativeNodePosition Pos = (Microsoft.Office.Core.MsoRelativeNodePosition) -1);
abstract member SwapNode : DiagramNode * Microsoft.Office.Core.MsoRelativeNodePosition -> unit
Public Sub SwapNode (ByRef TargetNode As DiagramNode, Optional Pos As MsoRelativeNodePosition = (Microsoft.Office.Core.MsoRelativeNodePosition) -1)

Parameters

TargetNode
DiagramNode

Required DiagramNode object. The node with which to swap.

Pos
MsoRelativeNodePosition

Optional MsoRelativeNodePosition. The position of the node relative to the node with which it is being swapped.

Remarks

Any child diagram nodes are moved along with their corresponding root nodes.

Applies to