Object Model Reference : Classes : N : NodeRange : Properties : NodeRange.SizeWidth |
Property SizeWidth As Double
Member of NodeRange
The SizeWidth property returns the width (measured in document units) of the bounding box enclosing all nodes in a node range.
The SizeWidth property returns a read-only value.
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 |
Copyright 2013 Corel Corporation. All rights reserved.