Object Model Reference : Classes : O : Outline : Properties : Outline.ScaleWithShape |
Property ScaleWithShape As Boolean
Member of Outline
The ScaleWithShape property determines whether an objects outline maintains the size proportions of the object. If this property is set to True, the outlines properties are scaled along with its shape.
The following VBA example creates an ellipse and applies an outline that is 0.1" wide. The ellipse is then enlarged to twice its previous size, and the outlines width (now at 0.2") is displayed.
Sub Test() |
Dim s As Shape |
Set s = ActiveLayer.CreateEllipse2(4, 4, 2) |
s.Outline.Width = 0.1 |
s.Outline.ScaleWithShape = True |
s.Stretch 2 |
MsgBox "Outline width is " & s.Outline.Width |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.