Previous Document Next Document

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


ShapeRange.ApplyNoFill

Sub ApplyNoFill()

Description

Member of ShapeRange

The ApplyNoFill method removes the fill from each shape in a shape range.

VBA example

The following VBA example removes all the fountain fills on the page.

Sub Test()
 Dim sr As New ShapeRange
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Fill.Type = cdrFountainFill Then sr.Add s
 Next s
 sr.ApplyNoFill
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.