property PaletteCount: Integer;
Use PaletteCount when iterating over all the palettes of this object. The palettes of
this object are listed in the Palettes property array.
PaletteCount is a read-only property.
The value of PaletteCount is always 1 greater than the highest Palettes index, because the first Palettes index is 0.