API Documentation > CorelDRAW > 2025-v26 > Curve > IVGCurve
Curve.Length property
Gets the length of the curve
Syntax:
Property Get Length() As Double
Remarks:
The Length property returns the total length of a selected curve . The curve calculation is an approximation because the length cannot be calculated with absolute mathematical precision. The precision of the calculation can be set with the Document.CurvePrecision property.
Examples:
The following VBA example selects a shape object in the active document and determines if that shape is a curve object. If the shape is a curve, a message box displays the length of that curve, in a measurement of inches.
Sub CurveLength()
Dim s As Shape
Set s = ActiveSelection.Shapes(1)
If s.Type = cdrCurveShape Then
  MsgBox "The length of the curve is: " _

 & vbCrLf & s.Curve.Length & " inches"
End If 
End Sub