DiagramNode.ReplaceNode Method
Replaces a target diagram node with the source diagram node.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub ReplaceNode ( _
pTargetNode As DiagramNode _
)
'Usage
Dim instance As DiagramNode
Dim pTargetNode As DiagramNode
instance.ReplaceNode(pTargetNode)
void ReplaceNode(
DiagramNode pTargetNode
)
Parameters
pTargetNode
Type: Microsoft.Office.Interop.Excel.DiagramNodeRequired DiagramNode object. The target diagram node to be replaced.
Remarks
The target diagram node is deleted, and the source diagram node, including any of its child nodes, are moved to where the target diagram node was.