Previous Document Next Document

Object Model Reference : Classes : E : EffectDistortion : Methods : EffectDistortion.CenterDistortion


EffectDistortion.CenterDistortion

Sub CenterDistortion()

Description

Member of EffectDistortion

The CenterDistortion method centers a distortion effect in its shape.

VBA example

The following VBA example centers all distortion effects on the page.

Sub Test()
 Dim s As Shape, eff As Effect
 For Each s In ActivePage.Shapes
  For Each eff In s.Effects
   If eff.Type = cdrDistortion Then
    eff.Distortion.CenterDistortion
   End If
  Next eff
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.