DiagramNode.SwapNode(DiagramNode, MsoRelativeNodePosition) 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.
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.
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.