DiagramNode.ReplaceNode Method
Replaces a 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 ReplaceNode ( _
<OutAttribute> ByRef TargetNode As DiagramNode _
)
'Usage
Dim instance As DiagramNode
Dim TargetNode As DiagramNode
instance.ReplaceNode(TargetNode)
void ReplaceNode(
out DiagramNode TargetNode
)
Parameters
- TargetNode
Type: Microsoft.Office.Interop.Word.DiagramNode%
Required DiagramNode object. The 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.