API Documentation > CorelDRAW > 2025-v26 > Effect > IVGEffect
Effect.Type property
Gets the effect with a cdrEffectType type
Syntax:
Property Get Type() As cdrEffectType
Remarks:
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.
Examples:
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