DiagramNode.CloneNode Method
Clones a specified diagram node. Returns a DiagramNode object that represents the clone.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function CloneNode ( _
copyChildren As Boolean, _
<OutAttribute> ByRef TargetNode As DiagramNode, _
Pos As MsoRelativeNodePosition _
) As DiagramNode
'Usage
Dim instance As DiagramNode
Dim copyChildren As Boolean
Dim TargetNode As DiagramNode
Dim Pos As MsoRelativeNodePosition
Dim returnValue As DiagramNode
returnValue = instance.CloneNode(copyChildren, _
TargetNode, Pos)
DiagramNode CloneNode(
bool copyChildren,
out DiagramNode TargetNode,
MsoRelativeNodePosition Pos
)
Parameters
- copyChildren
Type: System.Boolean
Required Boolean. True to clone the diagram node's children as well.
- TargetNode
Type: Microsoft.Office.Interop.Word.DiagramNode%
Optional DiagramNode object. The node where the new node will be placed.
- Pos
Type: MsoRelativeNodePosition
Optional MsoRelativeNodePosition. If TargetNode is specified, indicates where the node will be added relative to TargetNode.
Return Value
Type: Microsoft.Office.Interop.Word.DiagramNode