Share via


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.Boolean

    Required Boolean. True to clone the diagram node's children as well.

  • pos
    Type: Microsoft.Office.Core.MsoRelativeNodePosition

    Optional 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

See Also

Reference

DiagramNode Interface

DiagramNode Members

Microsoft.Office.Interop.Excel Namespace