TExcelFile.GetColorPalette Method
Overloads
TExcelFile.GetColorPalette(Integer)
Returns a color from the color palette. This method will throw an exception if its "index" parameter is bigger than ColorPaletteCount, (for example, for an automatic color). To get the real color, use GetColorPalette(Integer, TUIColor)
Syntax
Unit: FlexCel.Core
function TExcelFile.GetColorPalette(const index: Integer): TUIColor; overload; virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | index | Integer | Index of the entry to return. Must be 1<=index<=ColorPaletteCount |
Returns
Color at position index.
See also
TExcelFile.GetColorPalette(Integer, TUIColor)
Returns a color from the color palette. If the index is not into the range 1<=index<=ColorPaletteCount this method will return the automaticColor.
Remarks
ColorIndexes returned by FlexCel might be <=0 or >ColorPaletteCount if the color is set to Automatic.
Automatic color is white for backgrounds, black for foregrounds and gray for gridlines.
Syntax
Unit: FlexCel.Core
function TExcelFile.GetColorPalette(const index: Integer; const automaticColor: TUIColor): TUIColor; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | index | Integer | |
const | automaticColor | TUIColor |