Previous Document Next Document

Object Model Reference : Classes : E : Effects : Properties : Effects.Item


Effects.Item

Property Item(Index As Long) As Effect

Description

Member of Effects

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

Item is the default property of the Effects class, and its reference can be omitted when you are accessing items in an Effects collection. For example, Effects.Item(2) is the same as Effects(2) — they both reference the second effect in the collection.

The Item property returns returns a read-only value.

Parameter
Description
Index
Specifies the preset placeholder that uniquely identifies each member of the Effects collection

VBA example

The following VBA 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 2013 Corel Corporation. All rights reserved.