Object Model Reference : Classes : E : Effect : Properties : Effect.Type |
Property Type As cdrEffectType
Member of Effect
The Type property returns the type of the current effect. Depending on the type of effect, an object of the effects properties (for example, blend, contour, distortion, and so on) is accessible.
The Type property returns a read-only value of cdrEffectType.
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 |
Copyright 2013 Corel Corporation. All rights reserved.