Previous Document Next Document
NodeRange.SizeHeight

Property SizeHeight As Double

Member of NodeRange

The SizeHeight property returns the height of the bounding box enclosing all of the nodes in the node range. This value is measured in document units.

The SizeHeight 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.