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
pTargetNode
Type: Microsoft.Office.Interop.Excel.DiagramNodeRequired DiagramNode object. The target diagram node to be replaced.
swapChildren
Type: System.BooleanOptional 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.