DiagramNode.CloneNode(Boolean, DiagramNode, MsoRelativeNodePosition) Method

Definition

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.

pos
MsoRelativeNodePosition

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

Returns

Applies to