API Documentation > CorelDRAW > 2025-v26 > FountainColors > IVGFountainColors
FountainColors.Count property
Gets the number of FountainColor in the FountainColors collection
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of color points in the FountainColors collection. The starting and ending color points are not included in the count of color points in the collection. Only the color points between the start and end points are included in the Count property.
Examples:
The following VBA example displays the number of color points in the fountain fill of the selected object. The selected object must have fountain fill before executing this code.
Sub Test()
MsgBox "Fountain fill contains " & ActiveShape.Fill.Fountain.Colors.Count & _
  " intermediate color points." 
End Sub