API Documentation > CorelDRAW > 2025-v26 > EffectDropShadow > IVGEffectDropShadow
EffectDropShadow.SetOffset method
Sets the drop shadow offset
Syntax:
Sub SetOffset(ByVal OffsetX As Double, ByVal OffsetY As Double)
Parameters:
Name Type Description
OffsetX
Double
OffsetY
Double
Remarks:
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.
Examples:
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