Object Model Reference : Classes : E : EffectDropShadow : Methods : EffectDropShadow.SetOffset |
Sub SetOffset(OffsetX As Double, OffsetY As Double)
Member of EffectDropShadow
The Offset property specifies the horizontal and vertical offset of a flat drop shadow from its control object.
• |
See also the EffectDropShadow.OffsetX and EffectDropShadow.OffsetY
properties.
|
The following VBA example moves all drop shadows by 2 document units to the right (along the x-axis) and 1 document unit down (along the y-axis).
Sub Test() |
Dim s As Shape, ds As EffectDropShadow |
For Each s In ActivePage.Shapes |
If s.Type = cdrDropShadowGroupShape Then |
Set ds = s.Effect.DropShadow |
ds.SetOffset 2,-1 |
End If |
Next s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.