Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.SizeHeight


Shape.SizeHeight

Property SizeHeight As Double

Description

Member of Shape

The SizeHeight property returns or specifies the vertical size of a shape. Changing this property stretches the shape to accommodate the specified size.

 
VBA example

The following VBA example creates a rectangle around each shape on a page.

Sub Test()
 Dim s As Shape
 Dim x As Double, y As Double
 ActiveDocument.ReferencePoint = cdrBottomLeft
 For Each s In ActivePage.Shapes
  s.GetPosition x, y
  ActiveLayer.CreateRectangle2 x, y, s.SizeWidth, s.SizeHeight
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.