Previous Document Next Document

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


FountainFill.StartColor

Property StartColor As Color

Description

Member of FountainFill

The StartColor property returns or specifies the starting color a fountain fill.

You can also access the starting color point of the fill by using the .Colors(0) 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.