API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.Length property
Gets the length of the segment (in the document's units)
Syntax:
Property Get Length() As Double
Remarks:
The Length property returns the length, in document units, of a segment.
Examples:
The following VBA example displays the length of the first segment of the selected curve.
Sub Test()
MsgBox ActiveShape.Curve.Segments(1).Length 
End Sub