Previous Document Next Document

Object Model Reference : Classes : E : Effect : Properties : Effect.Type


Effect.Type

Property Type As cdrEffectType

Description

Member of Effect

The Type property returns the type of the current effect. Depending on the type of effect, an object of the effect’s properties (for example, blend, contour, distortion, and so on) is accessible.

The Type property returns a read-only value of cdrEffectType.

VBA example

The following VBA example changes all blends attached to the selected shape so that they have only two steps.

Sub Test()
 Dim s As Shape
 Dim eff As Effect
 Set s = ActiveShape
 For Each eff In s.Effects
  If eff.Type = cdrBlend Then
   eff.Blend.Steps = 2
  End If
 Next eff
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.