Previous Document Next Document

Object Model Reference : Classes : E : EffectDropShadow : Properties : EffectDropShadow.PerspectiveAngle


EffectDropShadow.PerspectiveAngle

Property PerspectiveAngle As Double

Description

Member of EffectDropShadow

The PersectiveAngle returns or specifies the angle of a perspective drop shadow.

VBA example

The following VBA example converts all flat drop shadows to perspective drop shadows.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Type = cdrDropShadowGroupShape Then
   With s.Effect.DropShadow
    If .Type = cdrDropShadowFlat Then
     .Type = cdrDropShadowBottom
     .PerspectiveAngle = 45
     .PerspectiveStretch = -0.5
    End If
   End With
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.