DiagramNode.SwapNode(DiagramNode, Boolean) 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 source diagram node with a target diagram node.
public void SwapNode (Microsoft.Office.Interop.Excel.DiagramNode pTargetNode, bool swapChildren = false);
Public Sub SwapNode (pTargetNode As DiagramNode, Optional swapChildren As Boolean = false)
Parameters
- pTargetNode
- DiagramNode
Required DiagramNode object. The target diagram node to be replaced.
- swapChildren
- 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.