Previous Document Next Document

Object Model Reference : Classes : O : Outline : Properties : Outline.ScaleWithShape


Outline.ScaleWithShape

Property ScaleWithShape As Boolean

Description

Member of Outline

The ScaleWithShape property determines whether an object’s outline maintains the size proportions of the object. If this property is set to True, the outline’s properties are scaled along with its shape.

VBA example

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 outline’s 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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.