|
FlexCel Studio for VCL/LCL
|
Associates an index into a color palette with a real color.
property ColorPalette [index: TColorPaletteRange]: LongWord;
__property LongWord ColorPalette[TColorPaletteRange index];
|
Parameters |
Description |
|
Index |
Index goes between 1 and ColorPaletteCount, and it specifies the index in the color palette. |
Excel versions up to 2003 have only a palette of 54 colors that you can use. Internally, those colors are stores as an index to a color palette, and most properties in FlexCel return this index.
Using this property, you can map that index to a real color like clBlue or clRed.
Note that while this limit of 54 colors was removed in Excel 2007, you can still use color indexes instead of real colors in 2007.
For an in-depth explanation of the Excel color palette, see Using the API documentation.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|