Previous Document Next Document

Object Model Reference : Classes : E : EffectDropShadow : Methods : EffectDropShadow.SetOffset


EffectDropShadow.SetOffset

Sub SetOffset(OffsetX As Double, OffsetY As Double)

Description

Member of EffectDropShadow

The Offset property specifies the horizontal and vertical offset of a flat drop shadow from its control object.

 

Parameter
Description
OffsetX
Specifies the horizontal offset
OffsetY
Specifies the vertical offset

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.