API Documentation > CorelDRAW > 2025-v26 > Colors > IVGColors
Colors.Count property
Gets the number of colors in the color collection
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of colors in the palette. See also the Palette.ColorCount property.
Examples:
The following VBA example displays the number of colors in the active palette.
Sub ColorsCount()
MsgBox "Active palette '" & ActivePalette.Name & "' contains " & _
  ActivePalette.Colors.Count & " colors" 
End Sub