API Documentation > CorelDRAW > 2025-v26 > SubPath > IVGSubPath
SubPath.SizeHeight property
Gets the height of the whole subpath (in document's units)
Syntax:
Property Get SizeHeight() As Double
Remarks:
The SizeHeight property returns, in document units, the vertical size of a subpath, treating the subpath as a separate object.
Examples:
The following VBA example draws a bounding rectangle around each subpath in the selected curve.
Sub Test()
Dim sp As SubPath
Dim x As Double, y As Double
ActiveDocument.ReferencePoint = cdrBottomLeft
For Each sp In ActiveShape.Curve.Subpaths
  sp.GetPosition x, y
  ActiveLayer.CreateRectangle2 x, y, sp.SizeWidth, sp.SizeHeight
Next sp 
End Sub