DiagramNode.CloneNode(Boolean, DiagramNode, MsoRelativeNodePosition) 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.
Clones a specified diagram node. Returns a DiagramNode object that represents the clone.
public Microsoft.Office.Interop.Word.DiagramNode CloneNode (bool copyChildren, out Microsoft.Office.Interop.Word.DiagramNode TargetNode = default, Microsoft.Office.Core.MsoRelativeNodePosition Pos = Microsoft.Office.Core.MsoRelativeNodePosition.msoAfterNode);
abstract member CloneNode : bool * DiagramNode * Microsoft.Office.Core.MsoRelativeNodePosition -> Microsoft.Office.Interop.Word.DiagramNode
Public Function CloneNode (copyChildren As Boolean, Optional ByRef TargetNode As DiagramNode = null, Optional Pos As MsoRelativeNodePosition = Microsoft.Office.Core.MsoRelativeNodePosition.msoAfterNode) As DiagramNode
Parameters
- copyChildren
- Boolean
Required Boolean. True to clone the diagram node's children as well.
- TargetNode
- DiagramNode
Optional DiagramNode object. The node where the new node will be placed.
Optional MsoRelativeNodePosition. If TargetNode
is specified, indicates where the node will be added relative to TargetNode
.