API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.FindClosestPoint method
Finds the point along the segment closest to the specified point
Syntax:
Function FindClosestPoint(ByVal x As Double, ByVal y As Double, ByRef ParamOffset As Double) As Boolean
Parameters:
Name Type Description
x
Double
y
Double
ParamOffset
Double
Remarks:
The FindClosestPoint method finds the point along a segment that is closest to a specified point