Previous Document Next Document

Object Model Reference : Classes : F : FountainColors : Properties : FountainColors.Item


FountainColors.Item

Property Item(Index As Long) As FountainColor

Description

Member of FountainColors

The Item property returns a FountainColor object for the specified color point.

The index can range from 0 to (Count+1), where Item(0) represents the starting point and Item(Count+1) represents the ending color point of the fountain fill or transparency.

Item is the default property of the FountainColors class, and its reference can be omitted when you are accessing items in a FountainColors collection. For example, Fountain.Colors.Item(2) is the same as Fountain.Colors(2) — they both reference the second color in the collection.

Parameter
Description
Index
Specifies the color point by its index number

VBA example

The following VBA example converts all colors in the fountain fill to grayscale.

Sub Test()
 Dim ff As FountainFill
 Dim i As Long
 Set ff = ActiveShape.Fill.Fountain
 For i = 0 To ff.Colors.Count + 1
  ff.Colors(i).Color.ConvertToGray
 Next i
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.