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 diagram node. Returns a DiagramNode object representing the cloned node.
public Microsoft.Office.Interop.Excel.DiagramNode CloneNode (bool copyChildren, Microsoft.Office.Interop.Excel.DiagramNode pTargetNode, Microsoft.Office.Core.MsoRelativeNodePosition pos = Microsoft.Office.Core.MsoRelativeNodePosition.msoAfterNode);
Public Function CloneNode (copyChildren As Boolean, pTargetNode As DiagramNode, 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.
- pTargetNode
- DiagramNode
Required DiagramNode object. An expression that returns a DiagramNode object that represents the node where the new node will be placed.
Optional Microsoft.Office.Interop.Office.MsoRelativeNodePosiiton. If pTargetNode
is specified, indicates where the node will be added relative to pTargetNode
.MsoRelativeNodePosition can be one of these constants:msoAfterLastSiblingmsoAfterNode DefaultmsoBeforeFirstSiblingmsoBeforeNode