API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.EndingControlPointLength property
Gets or sets the length of the control point of the ending node (in the document's units)
Syntax:
Property Get EndingControlPointLength() As Double
Property Let EndingControlPointLength(ByVal Value As Double)
Remarks:
The EndingControlPointLength property returns or specifies, in document units, the length of the control-point vector ending of a curve.
Examples:
The following VBA example sets the starting and ending control-point length for the first segment in the active shape.
Sub App()
With ActiveShape.Curve.Segments(1)
  .StartingControlPointLength = 5
  .EndingControlPointLength = 5
End With 
End Sub