Table of Contents

TXlsFile.GetColorPalette Method

Returns a color from the color palette. This method will throw an exception if its "index" parameter is bigger than TExcelFile.ColorPaletteCount, (for example, for an automatic color). To get the real color, use TExcelFile.GetColorPalette(Integer, TUIColor)

Syntax

Unit: FlexCel.XlsAdapter

function TXlsFile.GetColorPalette(const index: Integer): TUIColor; overload; override;

Parameters

<-> Parameter Type Description
const index Integer Index of the entry to return. Must be 1<=index<=TExcelFile.ColorPaletteCount

Returns

Color at position index.

See also