Partager via


ShapeNodes.SetPosition Method

Sets the location of the node specified by Index. Note that, depending on the editing type of the node, this method may affect the position of adjacent nodes.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.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
    The node whose position is to be set.
  • X1
    Type: System.Single
    The x-position (in points) of the new node relative to the upper-left corner of the document.
  • Y1
    Type: System.Single
    The y-position (in points) of the new node relative to the upper-left corner of the document.

See Also

Reference

ShapeNodes Interface

ShapeNodes Members

Microsoft.Office.Interop.PowerPoint Namespace