API Documentation > CorelDRAW > 2025-v26 > SubPath > IVGSubPath
SubPath.FindClosestSegment method
Finds a segment closest to the specified point
Syntax:
Function FindClosestSegment(ByVal x As Double, ByVal y As Double, ByRef ParamOffset As Double) As Segment
Parameters:
Name Type Description
x
Double
y
Double
ParamOffset
Double
Remarks:
The FindClosestSegment method finds the segment closest to a specified point on a subpath.