Object Model Reference : Classes : C : Colors : Properties : Colors.Count |
Property Count As Long
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.