Compartilhar via


DiagramNode.MoveNode Method

Moves a diagram node and any of its child nodes within a diagram.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub MoveNode ( _
    pTargetNode As DiagramNode, _
    pos As MsoRelativeNodePosition _
)
'Usage
Dim instance As DiagramNode
Dim pTargetNode As DiagramNode
Dim pos As MsoRelativeNodePosition

instance.MoveNode(pTargetNode, pos)
void MoveNode(
    DiagramNode pTargetNode,
    MsoRelativeNodePosition pos
)

Parameters

  • pos
    Type: Microsoft.Office.Core.MsoRelativeNodePosition

    Required MsoRelativeNodePosiiton. The position to move the node, relative to TargetNode.

    MsoRelativeNodePosition can be one of these constants:

    msoAfterLastSibling

    msoAfterNode

    msoBeforeFirstSibling

    msoBeforeNode

See Also

Reference

DiagramNode Interface

DiagramNode Members

Microsoft.Office.Interop.Excel Namespace