GetPoint

<< Click to Display Table of Contents >>

Navigation:  TMyShape > Methods >

GetPoint

function GetPoint(PointID: integer): TMyPoint; public

 

Description

 

Get the shape's point by PointId.

 

Parameter:

 

 PointID : the point id of the point that you will retrieve.             it is PointId>=0 and PointId<= GetPointsCount-1  

 

Returns:  

 

  the point.

 

Example:

 

Get the first point of a shape.

 

 

IF AShape.GetPointsCount >0 THEN  

        APoint:=AShape.GetPoint(0);