DiagramNode.SwapNode Method
Swaps the target diagram node with the source diagram node.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub SwapNode ( _
<OutAttribute> ByRef TargetNode As DiagramNode, _
Pos As MsoRelativeNodePosition _
)
'Usage
Dim instance As DiagramNode
Dim TargetNode As DiagramNode
Dim Pos As MsoRelativeNodePosition
instance.SwapNode(TargetNode, Pos)
void SwapNode(
out DiagramNode TargetNode,
MsoRelativeNodePosition Pos
)
Parameters
- TargetNode
Type: Microsoft.Office.Interop.Word.DiagramNode%
Required DiagramNode object. The node with which to swap.
- Pos
Type: 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.