This documentation is archived and is not being maintained.

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)

'Usage
Dim copyChildren As Boolean
Dim pTargetNode As DiagramNode
Dim pos As MsoRelativeNodePosition
Dim returnValue As DiagramNode
Dim diagramNode1 As DiagramNode
returnValue = diagramNode1.CloneNode(copyChildren, pTargetNode, pos)

DiagramNode CloneNode(
	[In] bool copyChildren, 
	[In] DiagramNode pTargetNode, 
	[In, Optional] MsoRelativeNodePosition pos
);
public DiagramNode CloneNode(
	/*in*/boolean copyChildren, 
	/*in*/DiagramNode pTargetNode, 
	/*in*/MsoRelativeNodePosition pos
);
function CloneNode(
	 copyChildren : Boolean, 
	 pTargetNode : DiagramNode, 
	 pos : MsoRelativeNodePosition
) : DiagramNode;

Parameters

copyChildren

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

pTargetNode

Required DiagramNode object. An expression that returns a DiagramNode object that represents the node where the new node will be placed.

pos

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:

msoAfterLastSibling

msoAfterNode Default

msoBeforeFirstSibling

msoBeforeNode

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: