API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.SizeWidth property
Gets the width between the leftmost & rightmost node within the range
Syntax:
Property Get SizeWidth() As Double
Remarks:
The SizeWidth property returns the width (measured in document units) of the bounding box enclosing all nodes in a node range.
Examples:
The following VBA example draws a rectangle around the selected nodes.
Sub Test()
Dim nr As NodeRange
Dim x1 As Double, y1 As Double
Dim x2 As Double, y2 As Double
Set nr = ActiveShape.Curve.Selection
ActiveDocument.ReferencePoint = cdrBottomLeft
x1 = nr.PositionX
y1 = nr.PositionY
x2 = x1 + nr.SizeWidth
y2 = y1 + nr.SizeHeight
ActiveLayer.CreateRectangle x1, y1, x2, y2 
End Sub