GetVertexCoordinate Method (IPolyLine) Send Feedback
See Also 
Success[out]
True if the coordinates of the vertex are returned, false if not
VertexIndex
Index of the vertex (see Remarks)
X[out]

x coordinate of the vertex

Y[out]
y coordinate of the vertex
Gets the coordinates of the specified vertex of this 2D PolyLine.

Syntax

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

Parameters

VertexIndex
Index of the vertex (see Remarks)
X[out]

x coordinate of the vertex

Y[out]
y coordinate of the vertex
Success[out] or Return Value
True if the coordinates of the vertex are returned, 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