Previous Document Next Document

Object Model Reference : Classes : N : NodeRange : Properties : NodeRange.SizeHeight


NodeRange.SizeHeight

Property SizeHeight As Double

Description

Member of NodeRange

The SizeHeight property returns the height (measured in document units) of the bounding box enclosing all nodes in a node range.

The SizeHeight property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.