API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.EndingControlPointY property
Gets or sets the ending control point Y
Syntax:
Property Get EndingControlPointY() As Double
Property Let EndingControlPointY(ByVal Value As Double)
Remarks:
The EndingControlPointY property returns or specifies the y-coordinate of the ending control point of a curve segment. This property is measured in document units.
Examples:
The following VBA example marks, with a small circle, the position of each control point.
Sub Test()
Dim s As Shape
Dim seg As Segment
Set s = ActiveShape
If s.Type = cdrCurveShape Then
  For Each seg In s.Curve.Segments

 If seg.Type = cdrCurveSegment Then


ActiveLayer.CreateEllipse2 seg.StartingControlPointX, seg.StartingControlPointY, 0.02


ActiveLayer.CreateEllipse2 seg.EndingControlPointX, seg.EndingControlPointY, 0.02

 End If
  Next seg
End If 
End Sub