API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.StartingControlPointAngle property
Gets or sets the angle of the control point of the starting node (in the document's units)
Syntax:
Property Get StartingControlPointAngle() As Double
Property Let StartingControlPointAngle(ByVal Value As Double)
Remarks:
The StartingControlPointAngle property returns or specifies the angle, in degrees, of the control-point vector beginning of a segment.
Examples:
The following VBA example constrains control point angles to increments of 45°. Each control-point vector is rotated to the closest angle that is a multiple of 45°.
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


seg.StartingControlPointAngle = Constrain(seg.StartingControlPointAngle)


seg.EndingControlPointAngle = Constrain(seg.EndingControlPointAngle)

 End If
  Next seg
End If 
End Sub Private Function Constrain(a As Double) As Double
Constrain = Fix(a / 45 + 0.5) * 45 End Function