Previous Document Next Document

Object Model Reference : Classes : L : Layer : Methods : Layer.CreateSpiral


Layer.CreateSpiral

Function CreateSpiral(Left As Double, Top As Double, Right As Double, Bottom As Double, NumRevolutions As Long, SpiralType As cdrSpiralType, GrowthRate As Long) As Shape

Description

Member of Layer

The CreateSpiral method creates a spiral at a specified location on a layer.

Parameter
Description
Left
Specifies, in document units, the distance from the left side of the spiral to the left side of the page frame
Top
Specifies, in document units, the distance from the top of the spiral to the top of the page frame
Right
Specifies, in document units, the distance from the right side of the spiral to the right side of the page frame
Bottom
Specifies, in document units, the distance from the bottom of the spiral to the bottom of the page frame
NumRevolutions
Specifies the number of revolutions in the spiral
SpiralType
Specifies the type of spiral to create, and returns cdrSpiralType
GrowthRate
Specifies the factor by which to increase the distance between revolutions in a logarithmic spiral. Values range from 1 to 100.

VBA example

The following VBA example creates a logarithmic spiral on the active layer. The spiral has four revolutions with a growth factor of 100 within each revolution.

Sub Test()
 ActiveLayer.CreateSpiral 0, 0, 5, 5, 4, cdrLogarithmic, 100
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.