Previous Document Next Document

Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.Stretch


NodeRange.Stretch

Sub Stretch([RatioX As Single = 1], [RatioY As Single = 1], [UseAnchorPoint As Boolean = False], [StretchAnchorX As Double], [StretchAnchorY As Double])

Description

Member of NodeRange

The Stretch property stretches the nodes in a node range as though the node range were a separate shape object.

Parameter
Description
RatioX
Specifies the width of the aspect ratio to use when stretching objects, expressed as a multiple of the current width. This parameter is optional, and its default value is 1.
RatioY
Specifies the height of the aspect ratio to use when stretching objects, expressed as a multiple of the current height. This parameter is optional, and its default value is 1.
UseAnchorPoint
Specifies whether to use an anchor point. This parameter is optional, and its default value is False.
StretchAnchorX
Specifies, in document units, the x-coordinate of the anchor point to use when stretching the node range. This parameter is optional, and its default value is 0.
StretchAnchorY
Specifies, in document units, the y-coordinate of the anchor point to use when stretching the node range. This parameter is optional, and its default value is 0.

VBA example

The following VBA example stretches the node range in the active shape with ratio values of 1, no reference point, and an anchor point of (0, 0).

Sub SkewNode()
 Dim nr as NodeRange
 Set nr = ActiveShape.Curve.Nodes.All
 With nr
  .Stretch 1, 1, False, 0, 0
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.