Provides runtime access to the colors in the palette.
__property TColor Color[int color];
Description
Use Color to get or set a color in the palette. The value of color must be between 0 and 255. You can even set the colors before the palette object is created.
Note that the color 0 is always black and the color 255 is always white, these colors can not be changed. You can set color 0 and 255, but the change does not take place. The next time you read these colors, color 0 will be clBlack and color 255 will be clWhite. Use the OriginalColor property to read the color value that you wanted to force for color 0 and 255.
By default, the color change takes place immediately. If you want to change the palette colors without seeing the change on the screen, use BeginUpdate and EnUpdate. These methods are useful if you want to modify more than 1 colors at a time.