API Documentation > CorelDRAW > 2025-v26 > SubPath > IVGSubPath
SubPath.Length property
Gets the length of the subpath (in document's units)
Syntax:
Property Get Length() As Double
Remarks:
The Length property returns the length, in document units, of a curve's subpath.
Examples:
The following VBA example identifies the first subpath in the active shape. The length of this subpath, in document units, is displayed in a message box.
Sub App()
MsgBox ActiveShape.Curve.Subpaths(1).Length 
End Sub