Previous Document Next Document

Object Model Reference : Classes : E : EffectLens : Properties : EffectLens.Type


EffectLens.Type

Property Type As cdrLensType

Description

Member of EffectLens

The Type property returns or specifies the lens type.

The Type property returns cdrLensType.

VBA example

The following VBA example selects all Transparency lenses on the page.

Sub Test1()
 Dim s As Shape, eff As Effect
 Dim sr As New ShapeRange
 For Each s In ActivePage.Shapes
  For Each eff In s.Effects
   If eff.Type = cdrLens Then
    If eff.Lens.Type = cdrLensTransparency Then sr.Add s
    Exit For
   End If
  Next eff
 Next s
 sr.CreateSelection
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.