Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.Stretch


ShapeRange.Stretch

Sub Stretch(StretchX As Double, [StretchY As Double], [StretchCharactersSize As Boolean = False])

Description

Member of ShapeRange

The Stretch method stretches the shapes in a shape range, treating the range as a single object.

 
The shape range is distorted relative to the reference point specified by the Document.ReferencePoint property.

Parameter
Description
StretchX
Specifies the horizontal stretch factor
StretchY
Specifies the vertical stretch factor. If not specified, this value assigned the same value as the StretchX parameter, resulting in a proportional stretch. This parameter is optional, and its default value is 0.
StretchCharactersSize
Specifies whether to stretch characters. This parameter is optional, and its default value is False.

VBA example

The following VBA example proportionally stretches all the shapes on the page by 200%. The position of the shape range is relative to the upper-right corner of the bounding box of the range.

Sub Test()
 ActiveDocument.ReferencePoint = cdrTopRight
 ActivePage.Shapes.All.Stretch 2
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.