Previous Document Next Document

Object Model Reference : Classes : C : Colors : Properties : Colors.Count


Colors.Count

Property Count As Long

Description

Member of Colors

The Count property returns the number of colors in the palette.

 
See also the Palette.ColorCount property.

The Count property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.