Previous Document Next Document
Effects.Item

Property Item(Index As Long) As Effect

Member of Effects

The Item property returns a specific Effect object representing the effect applied.

The Item property is the default property and its reference can be omitted when referencing items in the collection. For example, Effects.Item(2) is the same as Effects(2) — they both reference the second effect in the Effects collection.

The Item property returns returns a read-only value.

Parameters
Description
Index
Represents a preset placeholder for each effect in an Effects collection, uniquely identifying each member of the collection

The following code example places text on a path:

Sub Test() 
 Dim sText As Shape, sEllipse As Shape 
 Set sText = ActiveLayer.CreateArtisticText(0, 0, "Text On Path") 
 Set sEllipse = ActiveLayer.CreateEllipse2(4, 5, 2) 
 sText.Text.FitToPath sEllipse 
 sText.Effects(1).TextOnPath.Quadrant = cdrBottomQuadrant 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.