Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.ClearEffect


ShapeRange.ClearEffect

Sub ClearEffect(Type As cdrEffectType)

Description

Member of ShapeRange

The ClearEffect method removes effects from the shapes in a shape range.

Parameter
Description
Type
Specifies the type of effect to remove

VBA example

The following VBA example removes the contour effect from all rectangles.

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateRectangle(2, 2, 4, 4)
 s.Fill.ApplyUniformFill CreateRGBColor(255, 0, 0)
 s.CreateContour cdrContourOutside
 Set s = ActiveLayer.CreateRectangle2(1, 4, 5, 5)
 s.Fill.ApplyUniformFill CreateRGBColor(0, 255, 0)
 s.CreateContour cdrContourInside
 ActivePage.FindShapes(, cdrRectangleShape).CreateSelection
 ActiveSelection.ClearEffect cdrContour
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.