Previous Document Next Document

Object Model Reference : Classes : P : Palette : Properties : Palette.ColorCount


Palette.ColorCount

Property ColorCount As Long

Description

Member of Palette

The ColorCount property returns the number of colors in a color palette.

 
The ColorCount property functions similarly to, but faster than, Colors.Count.

The ColorCount property returns a read-only value.

VBA example

The following VBA example displays the total number of colors found in the default palette.

Sub Test()
 Dim pal As Palette
 Set pal = ActivePalette
 MsgBox "Default palette contains " & pal.ColorCount & " color(s)"
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.