Object Model Reference : Classes : E : EffectDropShadow : Properties : EffectDropShadow.Color |
Property Color As Color
Member of EffectDropShadow
The Color property returns or specifies the Color object that represents the color of the drop shadow.
The following VBA example changes the color of all drop shadows to red.
Sub Test() |
Dim s As Shape, eff As Effect |
For Each s In ActivePage.Shapes |
For Each eff In s.Effects |
If eff.Type = cdrDropShadow Then |
eff.DropShadow.Color.RGBAssign 255, 0, 0 |
End If |
Next eff |
Next s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.