SetVertexCoordinate Method (IPolyLine) Send Feedback
See Also 
Success[out]
True if the coordinates of the vertex are set, false if not
VertexIndex

Index of the vertex

X
x coordinate for the vertex
Y
y coordinate for the vertex
Sets the coordinates of the specified vertex of this 2D PolyLine.

Syntax

Visual Basic 
Function SetVertexCoordinate( _
   ByVal VertexIndex As System.Integer, _
   ByVal X As System.Double, _
   ByVal Y As System.Double _
) As System.Boolean
C# 
System.bool SetVertexCoordinate( 
   System.int VertexIndex,
   System.double X,
   System.double Y
)
JavaScript 
SetVertexCoordinate( 
   VertexIndex : Number,
   X : Number,
   Y : Number
) : Boolean
COM native C++ 
HRESULT SetVertexCoordinate( 
   LONG VertexIndex,
   DOUBLE X,
   DOUBLE Y,
   VARIANT_BOOL* Success
) 
C++ 
DSRESULT SetVertexCoordinate( 
   long VertexIndex,
   double X,
   double Y,
   bool* Success
) 

Parameters

VertexIndex

Index of the vertex

X
x coordinate for the vertex
Y
y coordinate for the vertex
Success[out] or Return Value
True if the coordinates of the vertex are set, false if not

Remarks

To determine a valid value for VertexIndex, call IPolyLine::GetVerticesCount to get the number of vertices in the 2D PolyLine.
 

See Also

Availability

DraftSight V1R1.1