Share via


DiagramNode.SwapNode Method

Swaps the source diagram node with a target diagram node.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub SwapNode ( _
    pTargetNode As DiagramNode, _
    swapChildren As Boolean _
)
'Usage
Dim instance As DiagramNode
Dim pTargetNode As DiagramNode
Dim swapChildren As Boolean

instance.SwapNode(pTargetNode, swapChildren)
void SwapNode(
    DiagramNode pTargetNode,
    bool swapChildren
)

Parameters

  • swapChildren
    Type: System.Boolean

    Optional Boolean. The child nodes of the target and source nodes being swapped. Any child diagram nodes are moved along with their corresponding root nodes. Default is True, which swaps the child nodes.

See Also

Reference

DiagramNode Interface

DiagramNode Members

Microsoft.Office.Interop.Excel Namespace