Previous Document Next Document

Object Model Reference : Classes : F : FountainColor : Methods : FountainColor.Delete


FountainColor.Delete

Sub Delete()

Description

Member of FountainColor

The Delete method removes a color point from a fountain fill.

 
You cannot delete starting and ending color points.
VBA example

The following VBA example removes any intermediate color points in a fountain fill, leaving only the starting and ending points.

Sub Test()
 Dim cl As FountainColor
 If ActiveShape.Fill.Type <> cdrFountainFill Then
  MsgBox "The selected shape must have a fountain fill."
  Exit Sub
 End If
 For Each cl In ActiveShape.Fill.Fountain.Colors
  cl.Delete
 Next cl
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.