API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.GetAbsoluteOffset method
Gets Absolute Offset
Syntax:
Function GetAbsoluteOffset(ByVal ParamOffset As Double) As Double
Parameters:
Name Type Description
ParamOffset
Double
Remarks:
The GetAbsoluteOffset method returns the distance of a specified point from the beginning of a segment, thus effectively converting the parametric offset to an absolute offset value.
Examples:
The following VBA example displays the distance of a point, with a parametric offset 0.5, from the beginning of the first segment of the active curve.
Sub Test()
MsgBox ActiveShape.Curve.Segments(1).GetAbsoluteOffset(0.5) 
End Sub