![]() |
![]() |
NodeRange.SizeWidth
Property SizeWidth As Double
Member of NodeRange
The SizeWidth property returns the width of the bounding box enclosing all of the nodes in the node range. This value is measured in document units.
The SizeWidth property returns a read-only value.
The following code 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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.