Previous Document Next Document

Object Model Reference : Classes : F : FountainFill : Properties : FountainFill.EndColor


FountainFill.EndColor

Property EndColor As Color

Description

Member of FountainFill

The EndColor property returns or specifies the ending color a fountain fill.

You can also access the ending color point of the fill by using the .Colors(.Colors.Count+1) property of the FountainColors collection.

VBA example

The following VBA example displays the names of the colors of the starting and ending color points of the fountain fill.

Sub Test()
 Dim ff As FountainFill
 If ActiveShape.Fill.Type = cdrFountainFill Then
  Set ff = ActiveShape.Fill.Fountain
  MsgBox "The fountain fill is from " & ff.StartColor.Name & _
    " to " & ff.EndColor.Name
 Else
  MsgBox "The selected shape doesn't have a fountain fill"
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.