Compartilhar via


ShapeNodes.SetPosition Method

Sets the location of the specified node.

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

Syntax

'Declaration
Sub SetPosition ( _
    Index As Integer, _
    X1 As Single, _
    Y1 As Single _
)
'Usage
Dim instance As ShapeNodes
Dim Index As Integer
Dim X1 As Single
Dim Y1 As Single

instance.SetPosition(Index, X1, Y1)
void SetPosition(
    int Index,
    float X1,
    float Y1
)

Parameters

  • Index
    Type: System.Int32

    Required Integer. The node whose position is to be set.

  • X1
    Type: System.Single

    Required Single. The position (in points) of the new node relative to the upper-left corner of the document.

  • Y1
    Type: System.Single

    Required Single. The position (in points) of the new node relative to the upper-left corner of the document.

Remarks

Note that, depending on the editing type of the node, this method may affect the position of adjacent nodes.

See Also

Reference

ShapeNodes Interface

ShapeNodes Members

Microsoft.Office.Interop.Excel Namespace