API Documentation > CorelDRAW > 2025-v26 > EffectBlend > IVGEffectBlend
EffectBlend.ColorBlendType property
Gets or sets the blend type of cdrFountainFillBlendType type
Syntax:
Property Get ColorBlendType() As cdrFountainFillBlendType
Property Let ColorBlendType(ByVal Value As cdrFountainFillBlendType)
Remarks:
The ColorBlendType property returns or specifies the color transition mode for a blend. This property returns cdrFountainFillBlendType.
Examples:
The following VBA example finds blends with a rainbow color transition and changes them to direct color blends.
Sub Test()
Dim s As Shape
Dim b As EffectBlend
For Each s In ActivePage.Shapes
  If s.Type = cdrBlendGroupShape Then

 Set b = s.Effect.Blend

 If b.ColorBlendType <> cdrDirectFountainFillBlend And _


  b.ColorBlendType <> cdrCustomFountainFillBlend Then


b.ColorBlendType = cdrDirectFountainFillBlend

 End If
  End If
Next s 
End Sub