DiagramNode.CloneNode Method
Clones a diagram node. Returns a DiagramNode object representing the cloned node.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function CloneNode ( _
copyChildren As Boolean, _
pTargetNode As DiagramNode, _
pos As MsoRelativeNodePosition _
) As DiagramNode
'Usage
Dim instance As DiagramNode
Dim copyChildren As Boolean
Dim pTargetNode As DiagramNode
Dim pos As MsoRelativeNodePosition
Dim returnValue As DiagramNode
returnValue = instance.CloneNode(copyChildren, _
pTargetNode, pos)
DiagramNode CloneNode(
bool copyChildren,
DiagramNode pTargetNode,
MsoRelativeNodePosition pos
)
Parameters
copyChildren
Type: System.BooleanRequired Boolean. True to clone the diagram node's children as well.
pTargetNode
Type: Microsoft.Office.Interop.Excel.DiagramNodeRequired DiagramNode object. An expression that returns a DiagramNode object that represents the node where the new node will be placed.
pos
Type: Microsoft.Office.Core.MsoRelativeNodePositionOptional MsoRelativeNodePosiiton. If pTargetNode is specified, indicates where the node will be added relative to pTargetNode.
MsoRelativeNodePosition can be one of these constants:
msoAfterLastSibling
msoAfterNode Default
msoBeforeFirstSibling
msoBeforeNode
Return Value
Type: Microsoft.Office.Interop.Excel.DiagramNode